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:
-
- 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 2654 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 4419 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 2771 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 2617 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 4309 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 2546 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 3955 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 2958 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 3046 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 2462 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 2373 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 3103 2020-03-11 13:19:31
-
- How to import image resources into yii
- The method for introducing image resources into the Yii framework is: 1. First, add a static folder under the web folder to store images static resource files; 2. Then, add an on-demand loading method in the AppAsset.php file; 3. Finally , just introduce the images resource into HTML.
- YII 3159 2020-03-11 11:57:49
-
- What is the yii framework mainly used for?
- The yii framework is mainly used to develop various web applications built with PHP. Yii framework is a general web programming framework. Because of its component-based framework structure and exquisitely designed caching support, it is particularly suitable for developing large-scale applications, such as portals, communities, content management systems, etc.
- YII 2083 2020-03-11 11:43:08
-
- How to download and install the yii2.0 framework
- The method to download and install the yii2.0 framework is: 1. First, install the [php web] environment; 2. Then, create the installation directory of the yii framework; 3. Then, open the command prompt and enter the created yii2 directory; 4 . Finally, execute the installation command and verify whether the installation is successful.
- YII 2319 2020-03-11 11:32:02