#47 | |
#48 | public function __call($method, $args) { |
#49 | // DEBUG關閉時,為防止泄漏敏感信息,用404錯誤代替 |
#50 | if(DEBUG) { |
#51 | throw new Exception('控制器沒有找到:'.get_class($this).'->'.$method.'('.(empty($args) ? '' : var_export($args, 1)).')'); |
#52 | }else{ |
#53 | core::error404(); |
#54 | } |
#55 | } |
#56 | } |