Eli : Memcached, MySQL, Highcharts

Disable layout and view renderer in Zend Framework

A quick tip when you need to disable layout and/or view rendering, simply add in your controller

public function preDispatch()
{
    $this->_helper->layout()->disableLayout();
    $this->_helper->viewRenderer->setNoRender(true);
}

Hope that can save you some time trying to find how in the documentation.

Related Posts





comments powered by Disqus

You may also be interested in