For many people who use the thinkphp framework, the use of automatic and additions and deletions to the Trakai class, when paging to maintain the search status of the results page, but the use of the thinkphp manual in the program is not effective.
The workarounds in the thinkphp manual are:
When paging jumps, guarantee the query condition foreach ($map as $key + $val) { $Page->parameter . = "$key =". UrlEncode ($val). &;}
Paste directly here can not be used, after debugging will find that when $map is not an array, then the variable is not get the desired value, the official idea is to encapsulate the search conditions $map traversal, relative to the form submitted by the data directly traversal effect better, so, the above code can be changed to:
When paging jumps, ensure that the query condition foreach ($_get as $key = = $val) {//echo $key. $val; $page->parameter . = "$key =". UrlEncode ( $val). &;}
Problem solved, of course, if your form is post-submitted, traverse the post on the line.
http://www.bkjia.com/PHPjc/824658.html www.bkjia.com true http://www.bkjia.com/PHPjc/824658.html techarticle for many people who use the thinkphp framework, the use of automatic with the additions and deletions to the Trakai class, when paging to maintain the search status of the results page, but the use of thinkphp manual program is ...