Re: Editing paginator URL
I don't know if this was something to do with my setup, but I had problems with setting the url options for pagination when using admin routing. my pagination links were coming out /admin/users/admin_index/ page:2/search:term I had to add an action parameter to the url options array to make it work: $paginator->options(array('url' => array('search'=>$search, 'action'=>'index'))); Just thought I'd post it in case someone else gets the same issue --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Editing paginator URL
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 -~--~~~~--~~--~--~---
Re: Editing paginator URL
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 -~--~~~~--~~--~--~---
Re: Editing paginator URL
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%20Jumpsuit > > 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 -~--~~~~--~~--~--~---
Editing paginator URL
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%20Jumpsuit 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 -~--~~~~--~~--~--~---