뷰 모델 인스턴스화 후 thinkphp3.2.3 오류 보고
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <?php
namespace Admin\Controller;
use Think\Controller;
class ArticleController extends Controller {
public function lst(){
$article = D( 'ArticleView' );
$count = $article -> 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();
}
|
1 2 3 4 5 6 | <?php
namespace Admin\Model;
use Think\Model\ViewModel;
class ArticlViewModel extends ViewModel {
}
|
报错
1146:테이블 'tk_blog.blog_article_view'가 존재하지 않습니다. [ SQL语句 ] : `blog_article_view`
에서 열 표시