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:
-
- The difference between tp and yii
- The difference between the tp framework and the yii framework: 1. The yii framework has multiple configuration files, while the tp framework has only one; 2. The yii framework uses many page controls, but the tp framework has never used them; 3. The ORM of the tp framework can be characters, arrays, Yii framework can only be arrays.
- YII 12435 2019-11-05 17:52:48
-
- How to write unit tests in Yii
- Each test case extends the Codeception\Test\Unit class, which is the standard Codeception format for unit testing. It is very difficult to develop fully isolated unit tests in Yii, so an application is started before each test case.
- YII 3275 2019-11-05 15:04:45
-
- How to initialize yii
- After Yii2 is installed, according to the official documentation, you need to initialize ./init. During initialization, we select Development mode. The main work of initialization is to generate some configuration files and script files.
- YII 2680 2019-11-05 14:55:44
-
- yii close error prompt
- How to turn off error prompts in yii: change error_reporting in the php.ini file to: error_reporting=E_ALL & ~E_NOTICE.
- YII 2786 2019-11-05 14:39:36
-
- How to access the controller in yii2
- Yii2's default controller has only one directory under the controller directory. When needed for development, you need to add a new directory under this directory, that is, add a secondary directory under the controller, such as: controller/api/MemberController. php.
- YII 4161 2019-11-05 14:28:06
-
- yii2 determines whether the table exists
- The method for yii2 to determine whether a table exists is divided into two steps: the first step is to find all the table names in the database, and the table names are obtained as two-dimensional arrays; the second step is to determine whether the table names exist in the two-dimensional array.
- YII 2393 2019-11-05 14:08:41
-
- How to implement yii2 routing
- yii2 routing refers to the part of the URL used to identify the module, controller, and action used to process user requests. It is generally specified by the r query parameter.
- YII 2699 2019-11-05 14:00:27
-
- How to use yii2 session
- Yii2's Session is relatively simple, just operate it directly through \Yii::$app->session.
- YII 2824 2019-11-05 13:43:41
-
- The difference between dao and ar in yii2
- The difference between dao and ar in yii2: AR is not intended to solve all database-related tasks. Its best applications are modeling data tables into PHP structures and executing queries that do not contain complex SQL statements. For complex query scenarios, Yii DAO should be used.
- YII 2551 2019-11-05 13:20:41
-
- Reasons why yii2 cookie cannot be retrieved
- When using the method in yii2 to obtain a cookie, the string in the cookieValidationKey will be read to decrypt it (it will also be used to encrypt the cookie when storing it). Since js does not encrypt the cookie, it cannot be decrypted here, and naturally the cookie cannot be obtained.
- YII 3172 2019-11-05 11:55:48
-
- How to use yii2 aftersave
- After saving, yii2 will call the aftersave method. Aftersave only does one thing, which is to trigger the corresponding event event, EVENT_AFTER_INSERT or EVENT_AFTER_UPDATE. You can look at the events of Yii2
- YII 7671 2019-11-05 11:48:06
-
- How to use jquery in yii
- Yii uses jquery method: Yii::app()->clientScript->registerCoreScript('jquery'); . Through this registration statement, if the system automatically loads it, it will not be registered. If not, jquery will be loaded through this statement.
- YII 2315 2019-11-05 11:34:18
-
- How to set layouts in yii
- When we use render() in the controller, Yii will load the layout by default. Modify the $layout variable in Controller.php under protected/componets to specify a custom layout file.
- YII 1849 2019-11-05 11:25:32
-
- What are the advantages of yii framework
- Advantages of the yii framework: Yii's code is simple and elegant. Yii is a full-stack framework that provides a large number of time-tested and out-of-the-box features. Yii is very easy to extend. Yii implements the MVC (Model-View-Controller) design pattern and Organize your code based on this pattern.
- YII 3111 2019-11-05 11:07:02
-
- What are the advantages of the yii framework?
- The advantages of the yii framework are that Yii is easy to learn and use, the development speed with Yii is very fast, Yii is highly reusable and scalable, Yii has rich functions, and Yii is carefully designed from the beginning to adapt to complex WEB For application development, Yii has complete documentation and Yii is free.
- YII 3337 2019-11-05 10:47:11