Q:

Disable layout in a view in joomla

It is possible to disable the layout (template) for a view in Joomla.
I'm loading a table using Ajax and I only want to load the table with out the template.
I discover the function setLayout but i don't know if exists a value to disable the template(layout).

A:

If you are loading the results using Ajax, you can stop loading template by adding the below code after echoing the output you need.
Ex:
echo YOUR TABLE OUTPUT HERE
jexit();

Now it will not render your template anymore.

