thanks, another step closer. the paginate links now include passedArgs
which come from $this->data but when i switch pages $this->data is
becomes empty and therefore the query disappears. It seems a bit harsh
to be transfering data to passedArgs and back to data. How can i use
paginate links without losing my query?

On Dec 24, 1:02 pm, "Jay Reeder" <[email protected]>
wrote:
> 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 <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to