Friday, May 1, 2009

Re: Advanced Pagination

Hi,

you can add your arguments as named url parameters to the paginator
functions like (numbers(),next(), prev(),...)

e.g.: echo $paginator->numbers(array('url' => array('country:' .
$country)));

Regards,

Michael

Benedikt R. schrieb:
> Hey!
>
> I try to apply the pagination helper to my bank codes controller. I
> got entries from germany and austria. Now I want the data seperated.
> That means, the user can either choose germany or austria.
>
> How do I save the argument for the pagination?
>
>
> Currently I started up with named arguments (.../bank_codes/browse/
> country:au). Of course the application wont save that setting for the
> next page. :-(
>
>
> Thank you!
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: