Category: Famework
Yii Error: permission denied for relation my_table
ERROR: permission denied for relation site_adzone This error occurs because you need to give the database user permission. Solution, execute the query: GRANT ALL PRIVILEGES ON TABLE userdb.table_xpto TO userdb;
Yii Error: short tag
Error: user->isGuest) { $this->redirect(array(‘login’)); } else { $sqlUser = “SELECT CASE WHEN us.data_senha_date <= now() THEN 1 ELSE 0 END AS ativo FROM database.tb_users as us WHERE us.usuario_id =” . Yii::app()->user->id; $uer = Yii::app()->db->createCommand($sqlUser)->queryRow(); Yii::app()->session[‘webUserExpirado’] = $usuario; if ($usuario[‘ativo’] == 1) { $this->redirect(array(‘usuario/changePassword’, ‘ns’ => 1)); } else { //$array = Yii::app()->session[‘webUserClientesList’]; //print_r(Yii::app()->session[‘webUserPerfil’]); //$array = (Yii::app()->session[‘webUserUFTest’]); //print_r($array[“0”][“uf_sigla”]); //print(Yii::app()->session[‘webUserExpirado’]); //print_r(Yii::app()->session[‘webUserTest’]); […]
Moeda | Tipo | Valor |
Dollar | Compra | R$ 5,97 |
Dollar | Venda | R$ 5,97 |
Data | 22/01/2025 |
Yii Error: CDbConnection failed to open the DB connection: could not find driver
1 de August de 2019
Errors, Yii
No Comments
adrianoApi
Error: CDbConnection failed to open the DB connection: could not find driver C:\xampp72\htdocs\DEV\project\protected\models\SystemConfiguration.php(50) Solution: In php.ini, enable the configurations according to the base used: extension=mbstringextension=exif ; Must be after mbstring as it depends on itextension=mysqli;extension=oci8_12c ; Use with Oracle Database 12c Instant Client;extension=odbc;extension=openssl;extension=pdo_firebirdextension=pdo_mysql;extension=pdo_oci;extension=pdo_odbcextension=pdo_pgsqlextension=pdo_sqliteextension=pgsql;extension=shmop
yii