I am doing an app that requires authentication. In the index page of the app, I specified access rules like this
public function accessRules() { return a
Since Yii v1.1.11 you can do the same thing with a callback and a closure, and just the default classes:
array('deny', 'actions'=>array('index','register','login','password'), 'users'=>array('@'), 'deniedCallback' => function() { Yii::app()->controller->redirect(array ('/home/index')); } ),