count();// 查询满足要求的总记录数
$Page = new \Think\Page($count,5);// 实例化分页类 传入总记录数和每页显示的记录数
$show = $Page->show();// 分页显示输出
$list = $article->order('id asc')->limit($Page->firstRow.','.$Page->listRows)->select();
$this->assign('list',$list);// 赋值数据集
$this->assign('page',$show);// 赋值分页输出
$this->display();
}报错
1146:Table 'tk_blog.blog_article_view' doesn't exist [ SQL语句 ] : SHOW COLUMNS FROM `blog_article_view`
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
表tk_blog.blog_article_view不存在
你这是sql错误,跟模版没关系