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 |
Why yii is so fast?
What is required properties in yii application? Why?
What yii is so fast?
What are the advantages of yii2?
Explain naming convention in yii 2 framework?
What are yii helpers?
What are the benefits of yii over other frameworks?
How to get current controller name?
How to use datetimepicker in yii2?
Which orm does yii2 supports?
What are the directory structure of yii?
What are formatter in yii 2.0?