$controllerClass = '\\'.MODULE.'\controller\\'.$controller.'Controller';
$controller = new \app\controller\indexController();
$controller = new $controllerClass();自动加载类的时候第三行会提示找不到类,第二行正确,但是打印出来$controllerClass 就是等于\app\controller\indexController的,求大神解惑
添加回答
举报
0/150
提交
取消