aamirkh521 / yii-user

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

The table "{{users}}" for active record class "User" cannot be found in the database. #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I installed YII user and configured. When I tried to login. I am getting the 
following error.

The table "{{users}}" for active record class "User" cannot be found in the 
database. 

Please help me with this.

Original issue reported on code.google.com by b.taraka...@gmail.com on 28 Feb 2011 at 2:35

GoogleCodeExporter commented 8 years ago
You may configure the module.
Place this to the protected/config/main.php

'modules'=>array(
 'user'=>array(
  'tableUsers' => 'tbl_users',
  'tableProfiles' => 'tbl_profiles',
  'tableProfileFields' => 'tbl_profiles_fields',
 ),
...

Original comment by hea...@gmail.com on 28 Feb 2011 at 8:46

GoogleCodeExporter commented 8 years ago
See http://code.google.com/p/yii-user/issues/detail?id=10#c3

Original comment by mish...@gmail.com on 28 Feb 2011 at 10:35

GoogleCodeExporter commented 8 years ago
Or you can add to your DB component configuration 'table_prefix'=>'_tbl'.

In any case if you even dont want to use table prefixes, you may add 
'table_prefix'=>'' to your  DB component configuration and table names, that is 
specified as '{{someName}}' will work correctly.

Original comment by vitaliy.step on 28 Feb 2011 at 2:26

GoogleCodeExporter commented 8 years ago
Right string: 'tablePrefix'=>'tbl_'

Original comment by aleshin....@gmail.com on 2 Sep 2011 at 6:59

GoogleCodeExporter commented 8 years ago
i want to add field for upload image profile 

Original comment by ashraf.a...@gmail.com on 28 Mar 2012 at 2:24