我的文件 怎么不存在啊
$route = new \core\lib\route(); $ctrlClass = $route->ctr; $action = $route->action; // $ctrlfile = APP.'/ctrl/indexCtrl.php'; $ctrlfile = APP.'/ctrl/'.$ctrlClass.'Ctrl.php'; p($ctrlfile); // $ctrlClass = '\\'.MODULED.'\ctrl\\'.$ctrlClass.'Ctrl'; // clearstatcache(); if(is_file($ctrlfile)){ include $ctrlfile; $ctrl = new $ctrlClass(); $ctrl->$action(); // new MODULED.'/ctrl/'.$ctrlClass; }else{ throw new \Exception('找不到控制器'.$ctrlClass); }