Home >Backend Development >PHP Problem >What are the structures of php projects?

What are the structures of php projects?

(*-*)浩
(*-*)浩Original
2019-09-16 13:39:344145browse

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:

What are the structures of php projects?

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!

Statement:
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
Previous article:php string to arrayNext article:php string to array