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 set default controller on yii project ?



How to set default controller on yii project ?..

Answer / Akash Deep Maurya

To set the default controller on a Yii project, modify the 'routes' array in the config/web.php file. For example, to set the HomeController as the default controller, add this line: 'route => ['class' => 'yiiwebRoute', 'defaultController' => 'home'],

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Yii PHP Framework Interview Questions

What is another controller view in yii?

1 Answers  


How does a search() in searchmodel work in yii2?

1 Answers  


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

1 Answers  


How to get current url in yii?

1 Answers  


Can you list some database related functions in yii?

1 Answers  


List out some database related functions in yii?

1 Answers  


How to create directory structure of yii framework?

1 Answers  


What is filter on yii framework ?

1 Answers  


What is the component, helper and why are they used, is there other way we can do same thing, what is better?

1 Answers  


How to set home page url in yii?

1 Answers  


What are the core components of yii2 framework?

1 Answers  


What is cmodel class in yii2?

1 Answers  


Categories