
What to do if yii2 widget reference fails
Solution to yii2 widget reference failure: 1. Use composer to install the widget; 2. Manually install the widget. You need to unzip the file to vendor/kartik/select2, and then add widget-related code in autoload and extens.
Feb 20, 2020 am 10:09 AM
How to initialize yii2 advanced version
Initialization method of yii2 advanced version: Execute the script [./init] under the root directory of yii2. After the initialization is completed, the yii file and other file initialization configurations will appear, as well as modify file permissions, etc.
Feb 19, 2020 pm 04:50 PM
How to deploy the yii framework
Methods for deploying the yii framework: 1. Set up a PHP environment and download the yii framework; 2. Check whether the current environment meets the requirements of the yii framework; 3. Create a project and use yiic to deploy; 4. Visit the project address to check whether the deployment is successful.
Feb 19, 2020 pm 04:47 PM
How to insert data in batches in Yii
Methods for batch inserting data in yii: 1. [$_model = clone $model;$_model->save();]; 2. [$model->isNewRecord = true;$model->save() && $model-> id=0;].
Feb 19, 2020 pm 04:28 PM
Yii framework implements email sending
How to implement email sending in Yii framework: 1. Open the main-local.php file and configure the [components=>[]] option; 2. Edit the controller controller, such as [$mail->setTo('****** *****@qq.com');].
Feb 19, 2020 pm 04:11 PM
How to add js code to View in yii2
yii2 method of adding js code to View: 1. Introduce the js file before the code, such as [<?php $this->registerJsFile('@web/js/jquery.js');?>]; 2. Use Global js file.
Feb 19, 2020 pm 03:50 PM
What should I do if the yii2 submission form prompts that it cannot be verified?
The solution to the yii2 submission form prompt that it cannot be verified is: 1. Turn off Csrf verification; 2. Add a hidden field to the form; 3. Add the _csrf field in AJAX, such as [data:{_csrf:csrfToken}].
Feb 19, 2020 pm 03:39 PM
How to print sql statement in yii
The method of yii printing sql statement: [$commandQuery = clone $model; echo $commandQuery->createCommand()->getRawSql();].
Feb 19, 2020 pm 03:25 PM
Execute multiple queues using yii2-query
Methods to use yii2-query to execute multiple queues: 1. [php yii queue1/listen;// or queue1/run]; 2. [php yii queue2/listen;// or queue2/run].
Feb 19, 2020 pm 03:12 PM
How to obtain user get and post parameters in yii2
The method for yii2 to obtain user get and post parameters: 1. [Yii::$app->request->queryParams]; 2. [Yii::$app->request->bodyParams].
Feb 19, 2020 pm 02:57 PM
How to add database connection in yii
The method to add a database connection in yii is: [$db=new yii\db\Connection(['dsn'=>'mysql:host=localhost;dbname=ex','uname'=>'root','password'= >' ',...].
Feb 19, 2020 pm 02:49 PM
How to use debug in yii framework
Yii framework debugging function: 1. Edit the frontend/config/main-local.php configuration file, set the IP field allowed to be accessed, and the size of the stored debug file; 2. Enter debug mode to view SQL, CPU occupancy, execution time, etc. .
Feb 19, 2020 pm 02:36 PM
How to modify database data in yii framework
The method of modifying database data in Yii framework: [$count = Model::model()->updateByPk($id,$attributes,$condition,$params);].
Feb 19, 2020 pm 02:25 PM
How to query data through table connection in yii framework
The method of querying data through table connection in Yii framework: [join('join','stu','record.sid=stu.sid') select(*) where(['record.re_id'=>$re_id] asArray( ) one();].
Feb 19, 2020 am 11:44 AM
Hot tools Tags

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
