If you are using MVC components of Zend Framework, you will come across situations where you will have to disable view and layout. To do so you use the viewRenderer and layout action helpers and call the setNoRenderer() and disableLayout() methods respectively.
In your controller action
<?php
$this->_helper->viewRenderer->setNoRender(true);
?>In your controller action
<?php
$this->_helper->layout->disableLayout()
?>Did the code snippet solve your problem?
Post new comment