Answer Posted / 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 |
Post New Answer View All Answers