
In yii2.0, it prompts csrf that the data you submitted cannot be verified.
The solution to the csrf prompt that the data you submitted cannot be verified in the yii2.0 framework is to turn off [csrf] verification. The specific steps are: 1. You can make corresponding settings in the controller file; 2. You can add hidden fields to the form; 3. Use [ajax] to submit.
Dec 13, 2019 pm 04:50 PM
How to introduce css files in yii framework
The method to introduce css files in the yii framework is: 1. First create a file directory and create a css file directory in this directory; 2. Then create a php file in the relevant directory; 3. Then configure the environment variables and create the project entry file in Introduce the configured system environment files; 4. Finally, output the environment variables in the style template.
Dec 13, 2019 pm 04:27 PM
How to create a project using yii framework
The method to create a project using the yii framework is: 1. First, you need to download the yii framework; 2. Then configure the environment variables, configure the environment variable value of yiic to the path where yii framework yiic is located, configure the environment variable value of php.exe to php in the server The path where .exe is located; 3. Finally, use the command to create the yii project.
Dec 13, 2019 pm 04:07 PM
Why is yii fast?
Yii is so fast because it uses lazy loading technology extensively. For example, the class will not be included until it is used for the first time; the object will not be created until the object is accessed for the first time.
Dec 11, 2019 pm 12:00 PM
How to define routing in yii framework
When a YII application starts processing a request, the first thing it does is convert the request URL into a route. The role of routing is to subsequently instantiate corresponding controllers and operations in order to process requests. The entire processing process is called routing.
Dec 11, 2019 am 11:47 AM
How to determine whether to log in using yii
How to determine whether the user is logged in in Yii: In Yii2.0, to determine whether the user is logged in, use the "Yii::$app->user->isGuest;" statement to determine. If the condition is true, it means that the user is not logged in.
Dec 09, 2019 pm 05:06 PM
How to install yii2.0
First install Composer, then install the Yii framework, unzip and put the file package into the project root directory of the server. Then open the web.config file in the config folder, find cookieValidationKey, add the password and save it.
Dec 09, 2019 pm 02:42 PM
How to query data in yii2
Query method: Return all data: User::find()->all(); Return a piece of data with primary key id=1: User::findOne($id); Sort query: User::find()->orderBy( 'id DESC')->all(), etc.
Dec 09, 2019 pm 02:17 PM
How to create your own project in yii
How to create your own project in yii: Use the "yiic webapp E:\wamp\www\yii\shop" command to specify the project name and project path to be created, and then enter yes in the next prompt to create the project.
Dec 09, 2019 pm 01:56 PM
How to write subquery in yii2 framework
子查詢:“$subQuery = Order::find(), where(['user_id' => $userId]), andWhere(['status' => $status]);”.
Dec 09, 2019 pm 01:52 PM
yii determines whether to submit in get mode
Yii2 provides several functions to determine the submission method, in the Yii::$app component. Use "Yii::$app->request->isGet" to determine whether it is submitted in get mode. If it is submitted in get mode, 1 will be returned.
Dec 09, 2019 pm 01:44 PM
How to print sql statements in yii framework
The yii framework can use "Model::find()->createCommand()->getRawSql();" or "$model->find()->createCommand()->getRawSql();" to print sql statements.
Dec 09, 2019 pm 01:40 PM
How to sort yii2.0 tables
Yii2.0 table sorting can be implemented using the Sort class. Using yii\data\Sort, you must first declare what attributes can be sorted, then obtain the currently set sorting information from attributeOrders or orders, and then use them to customize data queries.
Dec 09, 2019 pm 01:37 PM
How to call extension class in php yii
Introduce and define in the config.php file: 'components'=>array('xyz'=>array('class'=>'ext.xyz.XyzClass', 'property'=>'value',).
Dec 09, 2019 pm 01:25 PM
Hot tools Tags

Undress AI Tool
Undress images for free

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

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

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
