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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -