CDbCommand Yii 1
A good practice of programming is to use “statement”, to do CRUD actions in a safe and scalable way. The Yii framework has by default its library for ease of development. SELECT Queryng with the template referencing the primary key: INSERT DELETE
The 4-Hour Workweek
The 4-Hour Workweek – Timothy Ferriss It’s a book that has many positive points, such as fighting for having a sufficient income, administering your work remotely, taking extended and clear vacations, working 4 hours a week, among others. But I don’t agree with forging a disease or producing less at work just to get a […]
Yii Error: include(Controller.php): failed to open stream: No such file or directory
This error occurred because the references to the classes were not equal to the file name, but the application was always installed on Windows Server, which is not “case sensitive “, so it worked. The error appeared from the moment we put it on AWS with a Linux server, which is case sensitive. But to […]
Yii Error: CDbConnection failed to open the DB connection: could not find driver
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 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 |
Small Move, Big Change – Caroline L. Arnold
7 de August de 2019
Books
No Comments
adrianoApi
The author tells us that the idea of how micro resolutions are fully achievable. It’s the way we achieve our goals without so much suffering and frustration. To demonstrate this, the book brings a very comprehensive view with many examples such as family, employment, money, friends, diet, relationships among other numerous approaches. The key point […]