ThinkPHP, page, search conditions retain the method when background pagination paginate page

paginate (20, false, [ 'query' => request () -> param ()]); 20 is the number of lines per page

  Sample code:

  $list = Db::name('article')->paginate(20,false,['query'=>request()->param()]);

Guess you like

Origin www.cnblogs.com/520stone/p/11130223.html