sarvan75 / yii-user-management

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

table translation no has prefix #164

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter in login page

What is the expected output? What do you see instead?
login apge

What version of the product are you using? On what operating system?
Yii 1.1.8 , yii-user-management rc6

Please provide any additional information below.

Original issue reported on code.google.com by a.tequ...@gmail.com on 22 Sep 2011 at 7:20

GoogleCodeExporter commented 9 years ago
I corrected this error by changing two things:

1 .- File YumTranslation.php changing the TableName function by:

public function tableName ()
{
if (isset (Yum:: module () -> translationTable))
$ this-> _tableName = Yum:: module () -> translationTable;
elseif (isset (Yii:: app () -> modules ['user'] ['translationTable']))
$ this-> _tableName = Yii:: app () -> modules ['user'] ['translationTable'];
else
$ this-> _tableName = '{{translation}}' / / fallback if nothing is in September

Yum return: resolveTableName ($ this-> _tableName, $ this-> getDbConnection ());

}

2 .- Yum.php file changing the line:

$ translationTable = Yum:: module () -> translationTable;

by

$ translationTable = YumTranslation:: model () -> tableName ();

Surely there is a more efficient way to do it but this has worked for me at my:)

regards

Original comment by a.tequ...@gmail.com on 22 Sep 2011 at 7:24

GoogleCodeExporter commented 9 years ago
I am getting this error during installation of this extension. Please help.

CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or 
view not found: 1146 Table 'testdrive.translation' doesn't exist. The SQL 
statement executed was: select message, translation from translation where 
language = :language and category = :category

Original comment by manishku...@gmail.com on 4 Jun 2012 at 7:57