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:
-
- How to install yii framework
- The Yii Framework Tutorial Definitive Guide recommends that you can use Composer to install the Yii framework, and you can install the Yii application template by running the command in a web-accessible folder.
- YII 2657 2019-11-14 15:50:33
-
- What should I do if Yii cannot find the vendor?
- First download it through composer global require "fxp/composer-asset-plugin:~1.1.1", and then install it through composer require fxp/composer-asset-plugin.
- YII 3214 2019-11-09 10:58:14
-
- What should I do if the gii in yii cannot be opened?
- Change 'allowedIPs' => ['127.0.0.1', '::1'] to 'allowedIPs' => ['*', '::1'] so that all IPs can be accessed.
- YII 2316 2019-11-09 10:48:25
-
- How to use yii's own verification code
- First configure actions and map the request verification code link to "controller/captcha". Then declare public variables, configure validation in the rules method, and configure the controller's routing in "captchaAction". Finally, configure the view layer.
- YII 2074 2019-11-09 10:39:15
-
- How does yii return 404
- First, enter the frontend\config folder of the Yii framework, open and edit the main.php file, and modify the controller name and method name in it. Then go to the controllers controller and add the error method in the controller code. Finally, create the view in error.php.
- YII 3129 2019-11-09 10:00:50
-
- How to install yii
- First install composer, and then install the Yii application template by running the "composer create-project --prefer-dist yiisoft/yii2-app-basic basic" command in a web-accessible folder.
- YII 2400 2019-11-09 09:41:08
-
- How to write yii download archive file
- First download the Yii Advanced Application Template and unzip it. Then open the command line, enter the YiiMain directory, and execute init. Then open frontend\web and backend\web to get index.php and index-test.php. Finally, configure the cookie encryption character.
- YII 2447 2019-11-09 09:26:51
-
- How to configure the yii program to support virtual hosts
- The method to configure the yii program to support virtual hosts is: 1. Copy the program of frontend/web/ to the root directory; 2. Modify the program of the index.php file; 3. Delete the web directory under frontend; 4. Implement pseudo-static .
- YII 2563 2019-11-08 17:02:36
-
- yii verification code cannot be displayed
- The solution to the problem that the yii verification code cannot be displayed: First, ensure that the captcha method in your controller is accessible and has the assigned permissions. This is set in the rule. Make sure your PHP GD plugin is enabled.
- YII 2679 2019-11-07 14:15:08
-
- What does yii application mean?
- The yii application refers to executing the user's access instructions. Its main task is to parse user instructions and assign them to the corresponding controller for further processing. The application is also a place to store parameters. For this reason, applications are often called "front controllers".
- YII 2521 2019-11-07 14:08:39
-
- How to pass variables to template in Yii
- The method of passing variables to the template in yii: embed PHP statements in the template file; put the business logic in the controller, so that our business logic and view are separated into the controller file; define the public properties of a class in the controller, rather than local variables. Then access the properties of this class through $this in the view.
- YII 2848 2019-11-07 13:51:19
-
- How about yii
- Similar to other PHP frameworks, Yii implements the MVC (Model-View-Controller) design pattern and organizes code based on this pattern. Yii's code is simple and elegant, which is its programming philosophy. Yii is very easy to extend. You can customize or replace almost any part of the core code.
- YII 1989 2019-11-07 13:38:15
-
- 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 2629 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 7683 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 4031 2019-11-07 09:57:56