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:
-
- What should I do if my yii session cannot be saved?
- Solution to yii session failure to save: Open the file yii\framework\web\auth\CWebUser.php #700 or so and comment out the Yii::app()->getSession()->regenerateID(true); statement
- YII 2721 2019-11-07 10:22:49
-
- what is yii2
- Yii2.0 is a framework that was completely rewritten based on Yii1.1. It absorbs many of the latest technologies and mainstream conventions in development, and is the representative of the latest generation of Web development frameworks.
- YII 7791 2019-11-07 10:12:00
-
- How to use yii2 hasone
- hasOne and hasMany are Yii2's unique functions for multi-table related queries. It is recommended to use them when using multi-table related queries. Return results: The return results of these two methods are yii\db\ActiveQuery objects.
- YII 4130 2019-11-07 09:57:56
-
- How to enable debugging in yii2
- How to enable debugging in yii2: First define YII_DEBUG as true and YII_ENV as true in the web/index.php file; then open the config/web.php file and add your own IP address to allowedIPS.
- YII 9983 2019-11-06 17:45:49
-
- Steps to write api interface in yii2
- 1. Create a separate application; 2. Beautify the route for the new api application; 3. Use gii to generate test modules; 4. Reconfigure the controller; 5. Configure Url rules for Goods; 6. Simulate request operations; 7. Do authorization authentication; 8. Do rate limiting.
- YII 10535 2019-11-06 17:32:00
-
- The difference between yii2 advanced version and normal version
- The difference between the advanced version and the ordinary version of yii2: The advanced version and the basic version are just different in name, and their frameworks are exactly the same; the ordinary version is suitable for developing applications that are independent of front and backends; the advanced version is suitable for developing applications that are divided into front and backends.
- YII 3853 2019-11-06 17:02:58
-
- yii2 close error prompt
- How to turn off the error prompt in yii2: Add the following code "defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER', true);" at the beginning of the php program to turn off the error prompt.
- YII 4029 2019-11-06 16:45:21
-
- How to solve the problem of unsuccessful scheduled tasks in yii2
- Solution to the unsuccessful yii2 scheduled task: The execution fails because the path is wrong. First open the yii script file, and then modify the first line to the path on your server.
- YII 2068 2019-11-06 16:18:58
-
- yii2 How to solve the problem that the data you submitted cannot be verified
- yii2 The data you submitted cannot be verified because of yii's csrf verification. This can be solved by adding "public $enableCsrfValidation = false;" to the controller.
- YII 8180 2019-11-06 16:01:21
-
- yii2 determines whether it is a post submission form
- How yii2 determines whether the form is submitted by post: Use "if(Yii::$app->request->isPost)" to determine. If the condition is true, it was submitted by post.
- YII 3044 2019-11-06 15:49:15
-
- yii2 determines whether the user is logged in
- The method for yii2 to determine whether the user is logged in: use "if(Yii::$app->user->isGuest)". If the condition is true, the user is not logged in. If the condition is not true, the user is logged in.
- YII 4273 2019-11-06 15:44:05
-
- How to reference css in yii framework
- How to reference css in the yii framework: 1. Create a default directory in the assets directory; 2. Create a css file directory in the default directory; 3. Create a php file and create system variables in the shop/protected/config directory; 4. At the entrance The file introduces the system environment file.
- YII 2779 2019-11-06 15:35:35
-
- How to install yii2 tutorial
- Yii2 installation tutorial: 1. Download the Yii framework and open the advanced folder; 2. Copy the advanced project file to the environment root directory and configure the access directory; 3. Add php.exe to the system environment variable.
- YII 2281 2019-11-06 17:52:18
-
- How to check the version of yii
- Methods to check the version of yii: The first way is to echo \Yii::getVersion() directly on the page; the second way is to use the command window. There is a yii file in the project directory and directly execute the file: ./yii.
- YII 7541 2019-11-06 09:47:34
-
- How to bind events in yii
- Yii uses trigger() and on() methods to bind events. Events are triggered by calling the yii\base\Component::trigger() method. This method must pass the event name and an event object to pass parameters to the event handler.
- YII 3259 2019-11-06 09:32:19