Home >Backend Development >PHP Problem >What are the structures of php projects?
A complete project needs to consist of three parts, project framework, business realization, and public support. In order to facilitate development and maintenance, the three parts usually correspond to different directory structures:
Business implementation (Application application part):The structure and code of each project will be different depending on the business implementation.
Project framework (Framework support framework): As the basic support for building projects, the project framework provides basic services such as class libraries, models, and tool classes. It is divided into core class libraries according to their importance. (Core) and tool class (Lib). (Recommended learning: PHP programming from entry to proficiency)
Public support (Public public support): Provide public support, such as static resources, styles, methods, etc.
The basic directory structure is as follows:
Application (Application)
Controller (Controller)
Admin (backend)
out out through Through through Through off off past ’ s ’ through ’ ’s ’ through ’' ‐ ‐ ‐ ‐ After‐‐stage After‐sense to ## Home (front desk)
Model (data model)
Framework (framework)Core (core framework) Lib (Tool Class)
Public (Public Support)
Style (Style)
Img (Picture)
Js (js file) Upload (upload file)
The above is the detailed content of What are the structures of php projects?. For more information, please follow other related articles on the PHP Chinese website!