3

Thinkphp5 Call to a member function render() on array

 3 years ago
source link: https://segmentfault.com/a/1190000039682360
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Thinkphp5 Call to a member function render() on array

发布于 今天 11:09

Call to a member function render() on array

Thinkphp5分页

查询数据库时,没有使用paginate()指定每页显示多少条记录;

错误代码(多了select(),少了paginate())

如果使用了paginate(),就不要使用select(),否则报错

tp5分页输出报出错Call to a member function render() on array


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK