new member here.

I am playing with cake now. One problem that bothers me is the search
function. The search function will process post data, when in
pagination, the paginator does not pass the search src.

For example, I would like:

site.com/search/search-string/page:1

In stead, the paginator would only show

site.com/search/page:1

The solution is:

in your view, add 'url'=>$paginator->params['pass']
for example,

$paginator->numbers(array('url'=>$paginator->params['pass']));

This will allow paginator to pass the search string in the link.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to