使用render()输出分页时报错,先谢谢拉

浏览:7765 发布日期:2016/12/13 分类:ThinkPHP5专区
如题,在使用render() 报 method not exist:think\db\Query->render错误
以下是控制器的源码$pageSize = 5;   //每页显示5条数据
        $top = new Top;
        $tops = $top->paginate($pageSize);
        $this->assign('tops', $tops);
        $htmls = $this->fetch();
        return $htmls;
html源码是{$tops->render()};对了 ,忘记说了,我用的是5.03版本
先谢谢拉
最佳答案
评论( 相关
后面还有条评论,点击查看>>