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 Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- What are Yii and Redis?
- Yii is a component-based high-performance PHP framework for developing large-scale Web applications. Yii is written in strict OOP and has complete library references and comprehensive tutorials; redis is a high-performance key-value database that is completely It is open source and free, and redis is a NOSQL database.
- YII 2931 2020-03-19 11:39:56
-
- How to specify the running path in yii
- How to specify the running path in yii: first open the configuration file/config/main-local.php; then add a line of code "'defaultRoute'=>'index',"; and finally reopen the page.
- YII 3000 2020-03-13 18:00:06
-
- How to use yii filter
- A Yii filter is a piece of code that can be configured to be executed before or after the controller action is executed. It must override the controller's public function filters() method in the controller to set which filter will act on which action.
- YII 2682 2020-03-11 16:54:37
-
- Why does the yii verification code not refresh?
- The reason why the yii verification code is not refreshed is because renderPartial() does not automatically render and output the client script by default. It needs to specify parameters to output and render, so the solution is to specify processOutput as true.
- YII 2771 2020-03-11 16:32:41
-
- Where is the yii database configuration file?
- Yii's public database configuration file is in /common/config/main-local.php. If the frontend and backend are different: the frontend is in /frontend/config/main-local.php and the backend is in /backend/config/main-local.php.
- YII 4726 2020-03-12 13:21:51
-
- How to introduce js into yii2.0
- The method for introducing js in yii2.0 is: 1. Use the inline script registerJs() to register the js code internally; 2. Use the external script registerJsFile() to import the js file externally.
- YII 2916 2020-03-11 14:41:52
-
- Solution to 400 error in yii2
- Solution to 400 error in yii2: 1. Turn off CSRF. 2. Add hidden fields to the form. 3. Add the _csrf field to AJAX.
- YII 2739 2020-03-11 14:31:04
-
- The difference between yii2 and tp5
- The difference between yii2 and tp5: 1. Yii has multiple configuration files, overlay configurations, multiple environment configurations, and local and online environment configurations. tp has only one type; 2. There are many page controls in yii, such as list/grid/detail, etc., tp does not have them. .
- YII 4435 2020-03-11 14:30:58
-
- Where to set language in yii
- The location to set the language in yii: 1. Set in app\web\index.php. 2. Add the code to set the language in app\config\web.php.
- YII 2694 2020-03-11 14:23:07
-
- How to connect multiple databases in yii2
- The method for yii2 to connect multiple databases is: 1. First, open the database configuration file common\config\main-local.php; 2. Then, add db2 under the original db configuration item and configure the properties of the second database. .
- YII 4096 2020-03-11 14:17:20
-
- What is the entry file of yii framework
- The entry file of the yii framework is index.php, which is located under the web directory. The entry file can set the current running mode and environment of the program, including debugging status, product environment, test environment, and development environment.
- YII 3075 2020-03-11 14:05:17
-
- How to access debug in yii2
- How to access debug in yii2: 1. Install the debug tool in the project; 2. Configure web/index.php; 3. Configure config/web.php; 4. Add web-local.php; 5. Set the runtime directory to be readable and writable.
- YII 3316 2020-03-11 13:52:53
-
- How to use twig template engine in yii framework
- The method for the yii framework to use the twig template engine is: 1. First, open the composer.json file and add ["yiisoft/yii2-twig": "*"]; 2. Then, update composer; 3. Finally, open main. php file and add configuration.
- YII 2581 2020-03-11 13:42:34
-
- How to set default route in Yii?
- How to set the default route in Yii: open the configuration file (web.php) and add 'defaultRoute' => 'shop/index' in the configuration file. Shop/index is the default route set.
- YII 2466 2020-03-11 13:34:57
-
- How to get post parameters in Yii?
- How to get Post parameters in yii: You can use the "Yii::$app->request->post($key,$default)" statement to get the post parameters.
- YII 3348 2020-03-11 13:19:31