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 we can call layouts in controller file in yii?



How we can call layouts in controller file in yii?..

Answer / Anshudeep Srivastava

To use a layout in Yii2 within a controller, you need to set the layout property of the controller or specific actions. For example, in your controller's class definition, you can specify the layout as `public $layout = 'your_layout';`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Yii PHP Framework Interview Questions

What is yii 2? Please explain?

1 Answers  


What is the difference between render() and renderpartial() in yii ?

1 Answers  


How can we use ajax in yii?

1 Answers  


How to use ajax in yii?

1 Answers  


What is difference between “render” and “renderpartial” in yii?

1 Answers  


What are the requirements of the yii?

1 Answers  


How we can change the url for yii::app()->homeurl in yii2?

1 Answers  


How to get current action name?

1 Answers  


How to use asset bundles in yii?

1 Answers  


How to use delete(), insert() and save() methods in yii2?

1 Answers  


Why yii is the best framework?

1 Answers  


Who developed yii?

1 Answers  


Categories