Hi Miles,
One way that works really well is to have a "proxy" action accepting
the initial search. This action reorganizes the get or post parameters
into named ones and redirects to the "real" action. It sound a bit
convoluted but it is a pretty common technique that offers a lot of
flexibility

In its simplest form it could simply look like:

function proxy_search() {
        if ( !empty($this->params['url']['name']) ) {
                $this->redirect('search/name:'.$this->params['url']['name']);
        }
}



On Feb 11, 9:40 am, Miles J <mileswjohn...@gmail.com> wrote:
> So I have a search/browse system thats plugged into pagination.
> Everything works fine as a $_POST, the data is returned and paginated
> BUT the second I resort the results using the pagination, I lose all
> the search queries/terms.
>
> How can I turn $_GET or $_POST into named params so that they are
> continually passed to pagination?
--~--~---------~--~----~------------~-------~--~----~
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