Home >PHP Framework >YII >Where is the yii root directory?
The yii root directory refers to the project directory, which is the "basic" directory. Developers can develop any projects based on this directory, such as websites, crm, malls, etc.; while the directory of the yii2 framework refers to "vendor/ yiisoft" directory.
The root directory of the framework is never the directory where you installed it. The installation directory is generally the project directory. That is the basic directory in the picture above.
The framework directory is the core directory and will not be modified by you. If you modify it, you will modify the framework source code.
The relationship between the project directory and the framework directory. No PHP framework can be played alone. Projects need to be based on the framework, and the same is true for yii2.
So, basic is the project directory, based on which you can develop any project: such as website, crm, mall, etc.
No matter what project is developed, the development habits and development logic are all based on the yii2 framework.
The directory of the yii2 framework is vendor/yiisoft. This is the directory of the yii2 framework.
These concepts need to be distinguished.
Recommended: "yii tutorial"
The above is the detailed content of Where is the yii root directory?. For more information, please follow other related articles on the PHP Chinese website!