|
|
@ -11,7 +11,7 @@ the communication between the model and the view. |
|
|
|
|
|
|
|
|
|
|
|
Besides implementing MVC, Yii also introduces a front-controller, called |
|
|
|
Besides implementing MVC, Yii also introduces a front-controller, called |
|
|
|
`Application`, which encapsulates the execution context for the processing |
|
|
|
`Application`, which encapsulates the execution context for the processing |
|
|
|
of a request. Application collects some information about a user request and |
|
|
|
of a request. Application collects information about a user request and |
|
|
|
then dispatches it to an appropriate controller for further handling. |
|
|
|
then dispatches it to an appropriate controller for further handling. |
|
|
|
|
|
|
|
|
|
|
|
The following diagram shows the static structure of a Yii application: |
|
|
|
The following diagram shows the static structure of a Yii application: |
|
|
@ -21,6 +21,7 @@ The following diagram shows the static structure of a Yii application: |
|
|
|
|
|
|
|
|
|
|
|
A Typical Workflow |
|
|
|
A Typical Workflow |
|
|
|
------------------ |
|
|
|
------------------ |
|
|
|
|
|
|
|
|
|
|
|
The following diagram shows a typical workflow of a Yii application when |
|
|
|
The following diagram shows a typical workflow of a Yii application when |
|
|
|
it is handling a user request: |
|
|
|
it is handling a user request: |
|
|
|
|
|
|
|
|
|
|
|