Rbam

Hello everybody,

In main.php file I have something like this:


'modules'=>array(

    'users' => array(

    ),

   'rbam'=>array(

       'userClass'=>'Users',

   ),

)

But the Users class is inside module users.

What should userClass property contain in order to include correctly the users class…

Of course, users class path is: modules/users/models/Users.php

Also I need to specify that:

users.Users

application.users.Users

application.modules.users.models.Users

modules/users/models/Users.php

are not working…

so:


'userClass'=>'application.users.Users'

,

produces :

include(application.users.Users.php): failed to open stream: No such file or directory warning

ok, I’ve figured it out… The main thing is that RBAM property userClass must be a class name not a path, something like:


'rbam'=>array(

            'userClass'=>'Users',

        ),

and the Users class, that it is in a module should be included separately like:


'import'=>array(

            'application.modules.users.models.Users',

	),

in to the main configuration file. Now everything is working as it should.

Hope that this will help someone.

PS If there are better solutions I am waiting for your reply.