Yii Framework: How to Configure Default Landing Page

By default, Yii 1.1 default landing page is site/index, if you plan like to have the default URL root access http://url.app/index.php/ land at a specific controller as default landing page, add in defaultController setting in the main config file. Here is how

Step 1: Edit protected/config/main.php and add the code below name or top level of return array

'defaultController' => 'controller/action',

Sample of controller we had is as example below;

	'name'=>'NoReplied CRM',
	'defaultController' => 'member/login',

Access to your application http://application.url/index.php it should now redirect to your controller.