sarvan75 / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

Using non-default file names #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This error was produced using the latest SVN version (which I tried after the 
same thing occurred in 0.6)

What steps will reproduce the problem?
1. I installed using the installer, and changed the table names to what I 
wanted, they went into the database fine but when trying to access the admin 
panel I received the error

The table "users" for active record class "YumUser" cannot be found in the 
database. (yii\db\ar\CActiveRecord.php(1976))

2. I then figured I needed to add the new table names to the config file (this 
wasn't very clear - perhaps the installer could generate the config needed to 
copy and paste)

3. After doing this, I received the same error, I debugged and found the error 
to be in the User model (YumUser.php), in the tableName() the If statement does 
not use braces but more than one statement is executed in the else. Looking at 
the other models, it looks like Line 60 is the line that needs removing.

Original issue reported on code.google.com by benjamin...@gmail.com on 10 Jul 2010 at 2:13

GoogleCodeExporter commented 9 years ago
The title should read "Using non-default table names"

Original comment by benjamin...@gmail.com on 10 Jul 2010 at 2:14

GoogleCodeExporter commented 9 years ago
I've also just noticed in the wiki it says "If you do change this, be sure to 
set up the correct table Names in your Application Configuration, so the User 
Module can access them." So apologies for not being able to read, still, a copy 
and paste bit would be nice.

Original comment by benjamin...@gmail.com on 10 Jul 2010 at 2:22

GoogleCodeExporter commented 9 years ago
fixed

Original comment by mither...@gmail.com on 5 Dec 2010 at 10:17