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 the latest version of yii?

0 Answers  


What are the core helper classes in yii framework?

1 Answers  


Why yii is the best framework?

1 Answers  


How can we use ajax in yii?

1 Answers  


Why gii is used in yii 2.0?

1 Answers  


What are components in yii 2?

1 Answers  


What is active record(ar) in yii?

1 Answers  


What is gii in yii 2 and for what it is used?

1 Answers  


How to get current controller id in yii ?

1 Answers  


What are yii helpers?

1 Answers  


What is the first function that gets loaded from a controller?

1 Answers  


How to install yii framework?

1 Answers  


Categories