How to disable layout from controller?
Answer / Navaneet Kumar
To disable the layout in Zend Framework, you can override the `initView()` method in your controller and set the layout to null. Here's an example:
```php
public function init() {
parent::init();
$this->view->layout()->setEmptyViewTemplate('path/to/your/empty_layout');
}
```
In this example, you should replace 'path/to/your/empty_layout' with the path to your custom empty layout.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which class extend the zend controller?
What is the zend file upload and element decorators?
What is the minimum php version required to run zend framework 2.0?
How to protect your site from sql injection in zend when using select query?
Tell me what are the basic operations performed by the decorator?
Explain the working with form elements in array notation?
I want to use a sql function or perform calculations in a statement I'm generating with zend_db_select. How can I do this?
Tell me what are the steps kept in mind while designing the zend_form?
What is a zend framework and why it is used?
How can I customize the appearance of forms generated by zend_form?
Explain authorization and authentication in zend framework?
How to fetch last inserted id, fetch all record and fetch a single record?