Content of the «Application Structure» section:
- Application Structure Overview
- Entry Scripts
- Application Components
Articles section «Application Structure»:
Yii 2 Controllers Documentation. Yii 2 Controllers are part of the MVC architecture. Yii Controllers are objects of classes extending from [[yii\base\Controller]] and are responsible for processing requests and generating responses. How to handle controllers in Yii 2.
Extensions Yii are redistributable software packages specifically designed to be used in Yii applications and provide ready-to-use features. We use the term "extension" to refer to Yii-specific software packages.
Widgets yii 2 are reusable building blocks used in views to create complex and configurable user interface elements in an object-oriented fashion. There are a good number of widgets bundled with Yii.
Filters are objects that run before and/or after yii controller actions.Yii filter may consist of a pre-filter (filtering logic applied before actions) and/or a post-filter (logic applied after actions).
Modules Yii 2 are self-contained software units that consist of models, views, controllers, and other supporting Yii components. End users can access the controllers of a module when it is installed in Yii application.
Views Yii 2 are part of the MVC architecture. They are code responsible for presenting data to end users. In a Yii application, views are usually created in terms of view templates which are PHP script files containing mainly HTML code and presentational PHP code.
Models Yii 2 are part of the MVC architecture. They are objects representing business data, rules and logic. You can create model classes by extending [[yii\base\Model]] or its child classes. The base class Yii 2 [[yii\base\Model]] supports many useful features
Yii 2 Applications are service locators.They host a set of the so-called application components that provide different services for processing requests. Each Yii application component has an ID that uniquely identifies itself among other application components in the same Yii application.