current location:Home > Technical Articles > PHP Framework > YII
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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.
- YII 2396 2020-02-19 17:07:23
-
- 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.
- YII 3104 2020-02-19 16:47:40
-
- 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;].
- YII 2518 2020-02-19 16:28:21
-
- 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');].
- YII 2450 2020-02-19 16:11:01
-
- 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.
- YII 2909 2020-02-19 15:50:52
-
- 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}].
- YII 2253 2020-02-19 15:39:43
-
- How to print sql statement in yii
- The method of yii printing sql statement: [$commandQuery = clone $model; echo $commandQuery->createCommand()->getRawSql();].
- YII 3976 2020-02-19 15:25:55
-
- 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].
- YII 2703 2020-02-19 15:12:15
-
- 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].
- YII 4118 2020-02-19 14:57:17
-
- 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'= >' ',...].
- YII 2321 2020-02-19 14:49:44
-
- 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. .
- YII 3601 2020-02-19 14:36:10
-
- 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);].
- YII 2959 2020-02-19 14:25:29
-
- 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();].
- YII 2204 2020-02-19 11:44:58
-
- Yii2 implements custom error page
- How to customize the error page in yii2: 1. Edit the config/main.php file; 2. Edit the views/site/error.php file, such as [$this->context->layout = false;].
- YII 2974 2020-02-19 11:28:53
-
- yii2 disable bootstrap library
- How to disable the bootstrap library in yii2: 1. First open the frontend\asset\AppAsset.php file; 2. Then comment the ['yii\bootstrap\BootstrapAsset'] value in the variable $depends.
- YII 2972 2020-02-19 11:18:09