$controllerClass = '\\'.MODULE.'\controller\\'.$controller.'Controller'; $controller = new \app\controller\indexController(); $controller = new $controllerClass();
自动加载类的时候第三行会提示找不到类,第二行正确,但是打印出来$controllerClass 就是等于\app\controller\indexController的,求大神解惑
xiemioc
揍扁扁了