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

What are the structures of php projects?

(*-*)浩
Release: 2023-02-24 07:42:01
Original
4142 people have browsed it

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!

Related labels:
php
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