But Im getting error "CWebUser and its behaviors do not have a method or closure named "checkAccessList". Seems its not loaded the RWebUser class.Does anyone can help me to solve it?
u cant have 2 user component in an application(one will override the other). i think you should define the behavior inside the CWebuser. or simply rename the user component name for rwebuser to something like Ruser.
Hi thanks for the response, I have tried with your suggestion but got the error "Property "CWebApplication.Ruser" is not defined.". I accessed it as follows on layout/main.php
Yes RUser(RWebUser) class belongs to the "rights" module. I just want to setup it inside another module.
Main app
|
|->modules
|
|->admin
|
|-> Modules
|
|->rights
main app no need RBAC but admin module required RBAC so I used "rights".As you said I have configured RUser component in protected/config/main.php and works fine.But the problem is inside rights module it uses as "Yii::app()->user" so I have to change them as Yii::app()->RUuser, without doing that can I switch user object as needed one for normal users and other for administrators.Appreciate your help
i think you should additionally create a custom component class for user that will have all the custom method for the RUser inside. if you already have that in place just add some of the methods to that class.