php - How can I display ajax results in a view in CakePHP without including the default template in the ajax response? -
I am using something with AJAX in Cake PHP and it seems that the view that returns comes the default template. How can I get rid of it (or even specify a different blank template for a scene)?
function ajaxFunction () {// do stuff $ this- & gt; Layout = 'Ajax'; } Ajax is an included empty layout to prevent additional markup from being added, exactly what you need.
Comments
Post a Comment