目录
Application\Home\Controller\ 下面的
IndexController.class.php
Tree.class.php
在IndexController.class.php中
public function index(){
......
import('Home\Controller\Tree');
$tree= new Tree($data,array('id', 'pid'));
......一切正常Tree.class.php
namespace Home\Controller;
use Think\Controller;
class Tree{
......
}但将Tree.class.php放到别处总是报告错误Fatal error: Class 'Home\Controller\Tree' not found in J:\upupw5.3.27\vhosts\jsb\Application\Home\Controller\IndexController.class.php on line 128
:(
Class 'Home\Controller\Tree' not found不管怎么改也不成,请各位大侠指点一下 最佳答案