There is only one folder in the overall code base that is publicly
available for the web server. It is the web directory. Other folders
outside the web root directory are out of reach for the web server.
Note − All project dependencies are located in the composer.json file. Yii2 has a few important packages that are already included in your project by Composer. These packages are the following −
Yii2's application structure is precise and clear. It contains the following folders −
Note − All project dependencies are located in the composer.json file. Yii2 has a few important packages that are already included in your project by Composer. These packages are the following −
- Gii – The code generator tool
- The debug console
- The Codeception testing framework
- The SwiftMailer library
- The Twitter Bootstrap UI library
Yii2's application structure is precise and clear. It contains the following folders −
- Assets − This folder includes all .js and .css files referenced in the web page.
- Commands − This folder includes the controllers that can be used from the terminal.
- Config − This folder contains config files for managing database, application and application parameters.
- Mail − This folder includes the mail layout.
- Models − This folder includes the models used in the application.
- Runtime − This folder is for storing runtime data.
- Tests − This folder includes all the tests (acceptance, unit, functional).
- Vendor − This folder contains all the third-party packages managed by Composer.
- Views − This folder is for views, that are displayed by the controllers. The layout folder is a for page template.
- Web − The entry point from web.
No comments:
Post a Comment