新增加类class怎么改放到别处

浏览:1783 发布日期:2014/01/11 分类:求助交流
thinkphp3.2
目录
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.phpnamespace 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
不管怎么改也不成,请各位大侠指点一下
最佳答案
评论( 相关
后面还有条评论,点击查看>>