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 connect to the database using php yii framework
- How to connect the php yii framework to the database: first configure the database connection component, by adding the db component to the application configuration; then open web.php to configure the database information; finally use "$conn = \Yii::$app->db;" to connect Just go to the database.
- YII 2859 2019-11-04 14:15:58
-
- The difference between yii and laravel
- The difference between yii and laravel: Yii is slightly better in code readability, laravel is a bit over-designed, laravel's facade mode makes reading the source code under the vendor a bit confusing, and many classes cannot be jumped to read in the IDE without the help of third-party components. Source code.
- YII 4520 2019-11-04 14:07:10
-
- what is yii gii
- Gii is an extension of Yii. It automatically generates code through Gii and leaves some common codes to the program to generate, which greatly reduces the developer's time cost. However, the generated code is the template that comes with Yii. The code generated every time is not what we want, so we have to make corresponding adjustments every time.
- YII 2983 2019-11-04 13:54:19
-
- where are yii components
- yii components (Components) In yii\base\Component, components are the main cornerstone of Yii applications and are instances of the yii\base\Component class or its subclasses.
- YII 1995 2019-11-04 13:43:39
-
- What does yii assets mean?
- The yii assets folder generally stores some style files (css), script files (js), picture files (images), etc. in the front and backend, so it can be used in conjunction with Yii::app()->request->baseUrl (get project name).
- YII 4493 2019-11-04 13:31:55
-
- What does Yii::app() mean?
- Yii::app() is an instantiated object that we can directly operate in the current framework. We can understand this object as the first object requesting the application.
- YII 3493 2019-11-04 13:20:21
-
- What is the difference between yii1.1 and yii2.0
- Differences: 1. Yii2.0 fully embraces Composer, while yii1.1 does not; 2. Almost every core class in Yii2.0 introduces namespaces, and the class name prefix "C" in version 1.1 is no longer used; 3. Yii2. 0 splits the CComponent class in 1.1 into two classes.
- YII 3007 2020-10-21 11:01:18
-
- Detailed explanation of addition, deletion, modification and query of Yii2.0 database operations
- 1. Simple query: one(): Returns the first record of the query based on the query results. all(): Returns all records based on query results. count(): Returns the number of records. sum(): Returns the total number of the specified column. average(): Returns the average of the specified column.
- YII 2792 2019-11-01 18:12:49
-
- The Yii3.0 era is coming, why not take a sneak peek?
- Just like when the Yii2.0 era came and Yii1.0 will eventually fade away, the launch of Yii3.0 version is bound to cause waves in the Yii framework. So what changes have been made in Yii3.0 compared to Yii2.0? The Yii3.0 framework is a skeleton application best suited for quick project creation.
- YII 5096 2019-11-01 18:13:21
-
- Create microservices using Yii2.0
- Breaking a large single application and service into several or even dozens of supporting microservices can scale individual components rather than the entire application stack to meet service level agreements. The traditional development model is to put all functions in one package, with basically no dependencies. This has the advantage of simple development and centralized management.
- YII 3931 2019-11-01 18:13:56
-
- Yii2 API interface output unified Json and jsonp format method
- If you are making an API, how can you enable others to have a unified standard json or jsonp format when they call your interface? However, everyone's agreement on the format and content of the json response is different, so we must do it before the data is sent out. Do some processing.
- YII 2616 2019-11-01 18:01:31
-
- Get started using the yii framework
- Yii is a high-performance PHP framework suitable for developing WEB 2.0 applications. You can check the features of Yii on the Yii Chinese official website (see foreign websites as well). The installation of Yii is very simple. The official provides direct download. After downloading, you can use it as long as you have a local PHP environment.
- YII 2447 2019-11-01 18:01:19