zu3i4ot
(Zu3i4ot)
March 29, 2011, 8:33am
1
hi, i trying to rename the view file in the views/user and i m also renaming the function view in user controller
public function actionView($id)
{
$this->render('view',array(
'model'=>$this->loadModel($id),
));
}
to like this
public function actionHome($id)
{
$this->render('home',array(
'model'=>$this->loadModel($id),
));
}
but it is causing to let me login, and when i login and it says i m not authorized. whats wrong? can anyone help?
mdomba
(Maurizio Domba Cerin)
March 29, 2011, 8:36am
2
Check the accessRules() in the controller… you need to set who are allowed for the action "home"
plantin
(Roald Santens)
March 29, 2011, 8:37am
3
Your application has some kind of authorization. Either the default or with an RBAC-module. You need to specify that the ‘Home’-action is allowed. Respectively in the rules-section of the controller or in the RBAC-module.
zu3i4ot
(Zu3i4ot)
March 29, 2011, 8:42am
4
thanks allowing the ‘home’ in rules helped