I have to close access to my index.php main page, I modified siteController.php with following code:
public function accessRules() {
return array(
// allow all users to perform 'index' and 'view' actions *
array('allow',
'actions' => array('index','view'),
'users' => array('admin'),
),
// allow authenticated user to perform 'create' and 'update' actions @
array('allow',
'actions' => array('create','update'),
'users' => array('admin'),
),
// allow admin user to perform 'admin' and 'delete' actions
array('allow',
'actions' => array('admin','delete'),
'users' => array('admin'),
),
// deny all users
array('deny',
'users' => array('*'),
),
);
}
Because I have to give access only for admin. After this manipulations I saw that redirect is working, and url becomes index.php/site/login, but instead of login/pass form I got ERR_TOO_MANY_REDIRECTS
. Hope you could understand me)