Home > php教程 > php手册 > TP5 uses SESSION to solve the problem of paging parameters

TP5 uses SESSION to solve the problem of paging parameters

WBOY
Release: 2016-07-06 13:29:14
Original
1107 people have browsed it

TP5 uses SESSION to solve the problem of paging parameters.
TP5 uses SESSION to solve the problem of paging parameters.

Add SESSION$searchKeywords=input('get.searchKeywords');<code class="prettyprint linenums lang-php">$searchKeywords=input('get.searchKeywords');<br> <br>         if($searchKeywords){<br> <br>             Session::set('searchWareshoueKeywords',$searchKeywords);//利用SESSION来解决分页参数的问题<br> <br>         }        <br> <br>         $key=Session::get('searchWareshoueKeywords'); $list = Ports::where('country','like','%'.$key.'%')<br>                  ->where('status','1')<br>                 ->paginate(25);             if($searchKeywords){

Session::set('searchWareshoueKeywords',$searchKeywords);//Use SESSION to solve the problem of paging parameters

                                                                         $key=Session::get('searchWareshoueKeywords');Query: $list = Ports::where('country','like','%' .$key.'%') ->where('status','1') -& Gt; paginate (25); Yunqi Conference Beijing Station: Ali Technical Experts rarely appeared. This time, there are more than 100? !
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template