Wednesday, May 23, 2012

Re: jQuery append, how to get file content

Hi, 

Thanks a lot. Its working now. :)

On Tuesday, 22 May 2012 15:20:55 UTC+8, marco metal wrote:
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: