How we can set default controller in yii?
Answer / Neeraj Sharma
To set a default controller in Yii, follow these steps:nn1. Define the default controller name in your application's main configuration file (usually found in 'config/web.php').n2. Set the 'defaultController' property to the desired controller name.n3. Make sure the specified controller class exists and extends the CController or one of its subclasses.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are components in yii 2?
How to include a view file in another view file yii?
What is components in yii?
What are the great feature of yii framework?
Explain directory structure of yii 2 framework?
What does yii stand for?
How we can change the url for yii::app()->homeurl in yii2?
What is the naming convention inyii?
In yii, how to get ip address?
Which orm does yii2 supports?
What are the directory structure of yii?
What is yii?