maybe you have an old version! in my 1.3.3 everything works fine and i actually cannot remember it ever did not..
On 26 Aug., 21:43, David Cole <[email protected]> wrote: > Well, I've done a "hack" for the time being until someone has a better > idea? > > for($i = 1; $i <= $params['pageCount']; $i++) { > if ($i == $params['page']) { > echo '<span>'.$i.'</span>'; > } else { > $args = $this->passedArgs; > $args['page'] = $i; > $conditions = array_merge(array('controller' => 'businesses', > 'action' => 'index'), $args); > echo '<span>'.$html->link($i, $conditions).'</span>'; > } > > } > > On Aug 26, 2:34 pm, David Cole <[email protected]> wrote: > > > > > I've tried that as well, it ignores the sort and direction keys. > > > On Aug 26, 2:32 pm, cricket <[email protected]> wrote: > > > > On Thu, Aug 26, 2010 at 3:02 PM, David Cole <[email protected]> > > > wrote: > > > > I'm having an issue where I want to maintain the sort and direction in > > > > the page links. So in sort I do this: > > > > > <?php echo $paginator->numbers(array('separator' => '', 'tag' => > > > > 'span')); ?> > > > > > Which prints my page numbers and appropriate links, and then manually > > > > input in the URL: > > > > >http://localhost/businesses/index/page:1/sort:created/direction:asc/l... > > > > > However once a page link is click, next, previous, 1-10, etc the URL > > > > changes to: > > > > >http://localhost/businesses/index/page:1/limit:3 > > > > > and all sort information is lost. Within my controller I have the > > > > appropriate code to maintain the sort and order, however, it is not > > > > getting passed into the numbers function. Has anyone had this issue > > > > before and has a work around been posted? Or am I simply missing > > > > something? Any help would be greatly appreciated. > > > > Not sure if this is relevant, but I put this at the top of my > > > paginator_links.ctp element: > > > > $paginator->options( > > > array('url' => isset($url) ? $url : $this->passedArgs) > > > ); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
