You can also include this in the view before using the paginator helper functions:
$paginator->options(array('url' => $this->passedArgs)); The above line will tell paginator to create URL's that have the same named parameters as the page you're currently on. On Tue, Dec 23, 2008 at 8:59 PM, kai <k3ho...@gmail.com> wrote: > > Here is some code: http://bin.cakephp.org/view/1242618351 > Also, i'm trying my best to learn so if anyone has any tips to make > the code better it would help me a lot. > > On Dec 23, 5:49 pm, kai <k3ho...@gmail.com> wrote: > > i have a habtm pagination query which constructs the correct sql but > > when i change pages or sort then $this->data and its conditions are > > lost. > > > > i've found that the two options i have for pagination to work > > completely is to use sessions or named parameters. i'm hoping to use > > named parameters but i'm not sure how in this case. i do something > > like $this->passedArgs['parameters'][$value] = $value; where $value is > > drawn from $this->data and when i use pr($this->passedArgs); > > everything seems to be in place but how does this become part of the > > URL? How does the URL consisting of named parameters remain intact > > going from page to page? > > > > i've been at this all day and need a break, hoping someone can send > > some wisdom. really, i just want this to work so i'm open to any > > information regarding the use of sessions too. ideally i'd like to > > learn how to do it both ways :) > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---