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 turn off debugging in yii2
- Add in the entry file: defined('YII_DEBUG') or define('YII_DEBUG', false); defined('YII_ENV') or define('YII_ENV', 'prod'); to turn off debug.
- YII 4949 2019-11-05 09:29:15
-
- Composer failed to install yii2
- The reason why composer failed to install yii2 is that there are only template files under the folder and no vendor. Solution: 1. Execute composer self -update command to update composer; 2. Update (install) plug-in.
- YII 3262 2019-11-05 09:28:00
-
- How to create an application in yii2
- First copy a copy of the backend in the root directory of the project and rename it to api; copy the api environment; modify the code after the environments/index.php file; switch to the project root directory and execute the initialization command; add the api folder alias; modify the configuration file ;Modify api files.
- YII 2390 2019-11-05 09:21:03
-
- How to install yii2
- yii2 is installed through composer. First, you need to install composer; set Composer globally to use the Chinese image; install composer-asset-plugin; install yii2 basic or advanced version; configure the domain name information to complete the installation and you can access it.
- YII 2424 2019-11-05 09:09:14
-
- How to check the version number in yii
- How to check the version number of Yii: first create a new php script file version.php; then enter the content "<?php echo Yii::getVersion(); ?>"; and finally run it.
- YII 3611 2019-11-04 16:13:40
-
- The difference between yii and tp framework
- The difference between yii and TP frameworks: 1. Yii framework has multiple configuration files, TP framework has only one; 2. Yii framework has many page controls, and TP framework does not use page controls.
- YII 4098 2019-11-04 15:10:10
-
- How to install yii2 framework
- The method to install the yii2 framework is: 1. Download the yii2 framework locally and extract it to the website root directory of the local server; 2. Enter the decompressed yii2 directory; 3. Start the local server; 4. Enter the web directory in the browser to test whether it is installed. success.
- YII 3309 2019-11-04 15:00:51
-
- How to achieve internationalization in yii2
- The internationalization function (i18n component) provided by yii2 supports all-round information translation, view translation, date and number formatting. It can adapt to the needs of different languages and regions without making major changes, so that users of the product can use it on a global scale.
- YII 2567 2019-11-04 14:51:11
-
- What are the advantages of yii2
- yii2 is easy to learn and use. You only need to know PHP and object-oriented programming, and you can get started quickly without having to learn a new architecture or template language in advance. Development with yii2 is very fast, and apart from the framework itself, very little coding needs to be written for the application. Making yii2 one of the most efficient development frameworks.
- YII 3748 2019-11-04 14:40:33
-
- 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 3027 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 4661 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 3165 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 2137 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 4642 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 3738 2019-11-04 13:20:21