如题,在使用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版本
先谢谢拉