ThinkPHP 3.2 background paging returns all data after clicking the next page
为梦兼程
为梦兼程 2019-04-09 17:46:12
0
4
1241

以下是部分代码:

$page           = new \Common\Lib\Page($count, 10);

$page->rollPage = 7;

$page->setConfig('theme', '%HEADER% %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%');

$limit = $page->firstRow . ',' . $page->listRows;

$list  = D('MemberView')->field('*')->where($member)->order('member.id desc')->limit($limit)->select();

为梦兼程
为梦兼程

reply all(2)
李玉峰

Thank you very much, this is really useful, it solved the problem that has been bothering me for a long time

C .
  • reply Thank you very much. This is really useful. It solved a problem that has been bothering me for a long time.
    为梦兼程 author 2019-04-12 14:38:54
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template