Yii User Extension (Can't Create New Relations)

Hello all and thanks for reading my post.

I set up the yii user extension and it works fine. I created a new table and i created a new relationship to the User table.

The User model is in the modules folder and not with all the other models.

When i try to use the relationship (eg ‘$data->user->username’) in my code i get the following error

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

Anybody has an idea how i can solve this problem ?

Even though the table is called ‘users’, the model is called User.

        	'user' => array(self::BELONGS_TO, 'User', 'user_id'),

[color="#006400"]/* moved from General Discussion */[/color]

so i should change the name of the relationship or of the file ? sry if i sound ignorant on the subject

The relationsship - how does it look now?

‘user’ => array(self::BELONGS_TO, ‘Users’, ‘user_id’),

It should be ‘User’.

The model is called ‘User’. :)

IMO, they made a big mistake in choosing to name the User table ‘users’ …

That never ceases to produce problems… :)

Sweet , no wonder u an elite member :-), thanks solved it , sorry for a stupid question should have paid more attention , next time i will also post in the right place , have a good one

You are welcome - and thanks :)

I do not move posts to punish people - I move them to try and create some order. :lol: