总是提示Class 'Home\Controller\Page' not found

浏览:28201 发布日期:2014/10/25 分类:求助交流 关键字: Page
Page.class.php放入ThinkPHP/Extend/Library/ORG/Util/目录下,
下面这段运行后老是提示Class 'Home\Controller\Page' not found
echo过import('ORG.Util.Page')的运行结果也是true,就是不知道为什么还是会有这个错误提示。 public function SearchAccount()
    {
        if ($_POST['BtnSearch'])
        {
            if ($_POST['ChkUsedAcct']=='Y')
            {
            $m = M('accountlistused'); 
          }
          else 
          {
               $m = M('accountlist'); 
          }
          $map['account_project'] = $_POST['TxtProjectName'];
import('ORG.Util.Page');
$count      = $m->where($map)->count();// 查询满足要求的总记录数 $map表示查询条件
$page = new Page($count ,10);
$limit = $page->firstRow . ',' . $page->listRows;
$list = $m->where($map)->order('account_project ')->limit($limit)->select();
$this->assign('list',$list);
$this->assign('page',$show);
$this->display();

            }
    }     
最佳答案
评论( 相关
后面还有条评论,点击查看>>