My last post was a bit misleading ... The way I should have stated it is that using array_merge() and unset() I was able to structure the array the way that I want it in the controller action for the search results so it's not throwing an error, but it is still showing in the url as >> country=Chile&data[Search][region]= . The results page has a custom sort so when the data is sorted the url changes back to >> country=Chile®ion= . I had to alter the controller, view, and a few elements to account for the difference and to keep it from giving an error.
What I would like to do is have $this->params array arrive at the controller already formatted the way I want instead of me having to manipulate the array once it get's there. On Tue, Jun 15, 2010 at 5:47 PM, Ed Propsner <crotchf...@gmail.com> wrote: > I have a dropdown in one of my searches that is populated via ajax. > > When the form submits (GET) my params end up looking something like: > > [code] > > [minAge] => 31 > [maxAge] => 41 > [country] => Chile > [data] => Array > ( > [Search] => Array > ( > [region] => Libertador General Bernardo O'Higgins > ) > > ) > > > [/code] > > If there a way for me to format the array so it's in sync with the rest of > the form? > > eg. > > [minAge] => 31 > [maxAge] => 41 > [country] => Chile > [data] => Array > [region] => Libertador General Bernardo O'Higgins > > > Nothing I tried has worked. > > > > > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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