Tuesday, May 22, 2012

Re: jQuery append, how to get file content

In the controller, just add the line to the page function.

function page()
{
     if($this->params['isAjax']==1)
{
$this->layout = '';
}
}


what this does is, it will check if the call is an ajax one or not,if its an ajax call, we override the layout by stating it as empty.







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

No comments: