first login page then index page

Hello,

I want to see login page first, if successfully login then back to index page. Can anyone tell me when I need to change. I am newble using Yii.

Thanks

Neel

Put this in your SiteController




public function filters()

{

  return array(

    'accessControl', // perform access control for CRUD operations

  );

}

public function accessRules()

{

  return array(

    array('deny',  // deny guest users

      'users'=>array('?'),

    ),

  );

}



/Tommy

Hello Tommy,

Thanks

But not wrking with me!