Tuesday, June 15, 2010

Format Array

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate