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? !