Home > PHP Framework > YII > What is the application structure of yii framework?

What is the application structure of yii framework?

(*-*)浩
Release: 2019-11-28 13:26:35
Original
2216 people have browsed it

Yii is organized using the Model-View-Controller (MVC) design pattern. Yii uses this mature technology in WEB programming to better separate the logic layer and presentation layer.

What is the application structure of yii framework?

The model represents the data, business logic and rules; the view displays the output of the model; the controller accepts the input and output and transforms it Commands for models and views.

In addition to MVC, Yii applications also have the following parts: (Recommended learning: yii framework)

Entry script: A PHP script that can be directly accessed by end users and is responsible for starting a request processing cycle.

Application: An object that can be accessed globally, manages and coordinates components to complete requests.

Should Components used: Objects registered in the application provide different functions to complete requests.

Module: An independent package containing a complete MVC structure. An application can be composed of multiple modules.

Filter: The controller needs to trigger code execution before or after processing the request.

Widget: An object that can be embedded in a view, can contain controller logic, and can be called repeatedly by different views.

The diagram below shows the static structure of a Yii application:

What is the application structure of yii framework?

The above is the detailed content of What is the application structure of yii framework?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
yii
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template