| #41 | |
| #42 | public function __call($method, $args) { |
| #43 | // DEBUG关闭时,为防止泄漏敏感信息,用404错误代替 |
| #44 | if(DEBUG) { |
| #45 | throw new Exception('控制器没有找到:'.get_class($this).'->'.$method.'('.(empty($args) ? '' : var_export($args, 1)).')'); |
| #46 | }else{ |
| #47 | core::error404(); |
| #48 | } |
| #49 | } |
| #50 | } |