There are several alternatives you could use: * Use links instead of form input - this way you could pass show:20, show:50 in predefined steps. Of course this is not per your requirements as you probably need the visitor to be able to fully customize the number of records. The upside with this approach is that the value is contained in the URL and params passed in the URL are preserved when the paginator links are generated * Use a redirect after handling the posted data - this way you could compose the redirect URL to contain the show:N param. On subsequent clicks this param shold be preserved * Use the Session to store the posted show value and implement the needed logic in the controller - whether you have a new value posted ($this->data), or you need to use Session.read() to retrieve and set the corresponding pager setting.
Anyways, I suggest you head on to http://cakeforge.org/projects/noswad and download the 1.1 Pagination demos package. There are alternative controllers/views bundled for different use scenarios in it. This has been a tremendous source of help for me, so I think you should be able to borrow an idea from them. Greetings, Nasko On 22 Ян, 11:18, bhushan A <[EMAIL PROTECTED]> wrote: > Hi, > i have achieved dynamic pagination. But got one bug. I have made one > text field which takes input from user for "Records per page". Its > displaying records as per field but when i am clicking on next page > link then records displayed are 'default'(Not as per field's input). > what to change? > Reply > [EMAIL PROTECTED] > > Thanks > Bhushan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---