On Dec 16, 9:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have my form in method GET. > When I search something, the link in the address bar is similar > to:http://localhost/blog/posts/search?data%5BPost%5D%5Bsearch%5D=1&data%... > > But in the links of pages renderered by paginator i find this url > > http://localhost/blog/posts/search?data=Array&page=2 > > The paginator transforms all in data=array. > > I dont want use Post Redirect Get > > because i dont think it is an elegant solution.
Interesting ;). > Moroever I see that most of site use the GET directly in the form. > > How I can mantain the correct parameters of the form GET to the > paginator helper? The get data processing in the pagination helper only expects string values - what you have is a representation of an array (data[Post][search]=1&data[Post][tre]=). If you wish to submit forms by get to avoid using PRG you need only modify the helper to derive this get string from the array that is present in $this->params. HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. The cake search (at the time of writing) erroneously reports less/no results for the google group. The wiki may contain incorrect info - read at your own risk (it's mainly user submitted) :) You may get your answer quicker by asking on the IRC Channel (you can access it with just a browser here:http://irc.cakephp.org). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
