Refactor your code to use named args, and pass them to paginator options; in controller:
if (isset($this->params['url']['search'])) { $search = $this->params['url']['search']; } else { $search = $this->params['named']['search'] } $this->set('search', $search); // pass it to view in view: $url = array_merge($this->passedArgs, array('search' => $search)); $paginator->options(array('url' => $url)); On Thu, Mar 27, 2008 at 1:43 AM, Haris <[EMAIL PROTECTED]> wrote: > > I had tried searching and found none that had similar issue. I want to > append parameters to the URL. > > > On Mar 27, 8:08 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > Easy, just search in this group, found one of the many threads > > discussing this issue, then apply the solution proposed. > > > > > On Wed, Mar 26, 2008 at 3:38 PM, Haris <[EMAIL PROTECTED]> wrote: > > > > > I have a search query that I want to append to the paginator returned > > > URL. How can I append parameters to the URL? > > > > > > Example:http://isharis.dnsalias.com/songs/search/page:2/relevance/?search=Red... > > > > > > > http://bin.cakephp.org/view/1344185837 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---