#38 | |
#39 | public function __call($method, $args) { |
#40 | // DEBUG關閉時,為防止泄漏敏感信息,用404錯誤代替 |
#41 | if(DEBUG) { |
#42 | throw new Exception('控制器沒有找到:'.get_class($this).'->'.$method.'('.(empty($args) ? '' : var_export($args, 1)).')'); |
#43 | }else{ |
#44 | core::error404(); |
#45 | } |
#46 | } |
#47 | } |