Webmaster's Community
Designing and Development => Open Source => Yii PHP Framework Support => Topic started by: phpdeveloper on September 17, 2012, 05:38:45 AM
-
HI ,
This is very easy to set Default controller in Yii you can just simply write a line of code in Your protecte/config/main.
'defaultController' => 'home ', //insert this line for set default controller
-
Thanks PhpDeveloper for this cool idea to set default controller .
Can you make me clear what is the Home IN 'defaultController' => 'Home', please Help
-
Hey this is the Name of your controller in your controller directory LIKe HOmeController.php
You can also understand like this :
'defaultController' => 'Your Controller Name ',
Hope Now this is easy to understand .
-
Thanks for your efforts you made to find the way to set default controller in yii .