ERROR - The table "user" for active record class "User" cannot be found in the database.
The database connection is working successfully and the table exists as it has data inside. The names are matched up.
User class model
public function tableName() { return 'user'; }
DB connection local.php
'components' => array(
'db'=>array(
'connectionString' => 'mysql:host=127.0.0.1;dbname=x',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'enableProfiling' => true,
'enableParamLogging' => true,
),
I'm not sure what the issue is?
Aucun commentaire:
Enregistrer un commentaire