For many people who use the thinkphp framework, the use of automatic confronted Kęstutis to change the class, in the paging to maintain the results page search status, but the use of the Thinkphp manual program is not effective.
The solution in the thinkphp manual is:
Page jumps to ensure that the query conditions
foreach ($map as $key => $val) {
$Page->parameter . = "$key =". UrlEncode ($val). &;
}
It can't be used to paste directly. 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 good search conditions $MAP traversal, relatively, the form submitted to the data directly traversal effect better, so the above code can be changed to:
Page jumps to ensure that the query conditions
foreach ($_get as $key => $val) {
//echo $key. $val;
$page->parameter . = "$key =" UrlEncode ($val) .&;
}
Problem solving, of course, if your form is submitted by post, traversing the post will do.