current location:Home > Technical Articles > PHP Framework > YII

  • How to initialize yii2 advanced version
    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
    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
    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
    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
    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?
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28