Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to disable layout from controller?



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

Post New Answer

More Zend Interview Questions

Which class extend the zend controller?

1 Answers  


What is the zend file upload and element decorators?

1 Answers  


What is the minimum php version required to run zend framework 2.0?

1 Answers  


How to protect your site from sql injection in zend when using select query?

1 Answers  


Tell me what are the basic operations performed by the decorator?

1 Answers  


Explain the working with form elements in array notation?

1 Answers  


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?

1 Answers  


Tell me what are the steps kept in mind while designing the zend_form?

1 Answers  


What is a zend framework and why it is used?

1 Answers  


How can I customize the appearance of forms generated by zend_form?

1 Answers  


Explain authorization and authentication in zend framework?

1 Answers  


How to fetch last inserted id, fetch all record and fetch a single record?

1 Answers  


Categories