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
this one worked for me since yii 1.1.11:
array('deny', // deny all users 'users'=>array('*'), 'deniedCallback' => $this->redirect('/') ),
or use a static method in a Class:
'deniedCallback' => array('ClassName', 'staticMethodName'),