: This article mainly introduces Codeigniter design and architecture objectives. For more information about PHP tutorials, see. Dynamic instantiation
In CI, component import and function execution are performed only when required, rather than within the global scope. Except for the minimum core resources, it is not assumed that the system requires any resources, so the default system is very lightweight. Events triggered by HTTP requests, and the controllers and views you designed will determine when they will be referenced.
Loose coupling
Coupling refers to the degree of correlation between components of a system. The fewer components are mutually dependent, the better the reusability and flexibility of the system. CI is a loosely coupled system.
Component uniqueness
Specifically, a component has a very small focus goal. in CI, in order to achieve its maximum purpose, each class and its functions are highly autonomous.
CI is a loosely coupled system that is dynamically instantiated and highly component-specific.
The above describes the Codeigniter design and architecture objectives, including the content, and hope to be helpful to friends who are interested in PHP tutorials.