I have my URL using paginator like: http://localhost/accounts/index/page:1/sort:Account.cutoff_time/direction:asc/
So if I want to attach more parameters like keyword (for example), I have URL like: http://localhost/accounts/index/page:1/sort:Account.cutoff_time/direction:asc/keyword:sport if you want to add keyword:somekey at the end you have to use helper $paginator->sort like <?php echo sort('Some title', 'Your column here', $options = array('url'=>array('keyword'=>$somekeyword))) ?> array('url'=>array('keyword'=>$somekeyword)) is very importal, because it make keyword:$somekeyword at the end of the default URL. you can get your value from URL by $keyword = isset($this->params['named']['keyword']) ? $this->params['named']['keyword']; and later pass $keyword value in your find condition Have a good time. --------------------------------- Best regards ! Giang Son Dat Mobile: +84 988114164 Email [email protected], [email protected] On Wed, Feb 11, 2009 at 12:40 AM, Miles J <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
