config/main.php

Hello,

I’m trying to override some of the CWebUser class methods (beforeLogin…) & I understand that in the main.php config file, I have to have the following:

‘components’=>array(

	'user'=>array(


		'class'=>'WebUser', //my own overriden class


	),

However I have installed the module Rights to help me with the RBAC of my application & Rights uses it’s own application component class as follows:

‘components’=>array(

	'user'=>array(


		'class'=>'RWebUser',			//Allows super users access implicitly.


	),

My question is:

Is there a way to use both classes ? I tried : ‘class’=>array(…) and ‘class’=>‘class1’,‘class2’ … in vain.

Thank you in advance.

Extend the RWebUser class with your own and use that class in your config.

Thanks man, that’s what i had in mind, but i thought i can find an alternative solution as I didn’t want to mess with the RWebUser class.

Thank you again.