That's what I am currently doing. $response = array(html, status, message, so on); html is the rendered view, you cant render 2 views / elements so how do you get the second block? The mini element that will go under the side navigation?
From: huoxito [mailto:[email protected]] Sent: Friday, January 28, 2011 7:42 AM To: [email protected] Subject: Re: 2 Col Layout / Jquery / JSON convert a php array to a json array with json_encode (there's a built in function in php) and then on your response on ajax request you can do a foreach to put each key content of the array anywhere you want on the page. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
