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