Answer Posted / Taran Jeet Singh Budhiraja
Disabling the layout is necessary when you want to control or override the default rendering behavior of a particular action or controller in Zend. To disable the layout, you can set the _helper property of the action or controller as follows:
```php
class MyController extends Zend_Controller_Action
{
public function myAction()
{
$this->_helper->layout->setLayout('');
// Your custom code here
}
}
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers