下面这段运行后老是提示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();
}
} 最佳答案