Introduction to thinkphp basics 1

WBOY
Release: 2016-07-29 08:58:07
Original
1032 people have browsed it

Introduction to thinkphp basics 1

The ThinkPHP directory is as follows. Application, as the name suggests, means application (our code is placed here), Public means public files (mainly putting front-end resource files such as JS CSS), and ThinkPHP files are the core packages of the framework (we generally put them here) Do not operate it). This means that the code written by our backend staff should be written in the Application directory

The second step will introduce the Application subdirectoryIntroduction to thinkphp basics 1

Common is the directory of our public functions or public configurations (public functions mean that they are in the Controller layer) can be called), the public configuration is some system configuration, such as configuring an upload path in it. We can use the C function C ("config") in the Controller layer to call the constants in it (the advantage is that changing one place is equivalent to changing multiple Controller layers. place).

The Home directory is the main location where we write mvc. Model View Controller. See the next section for details on usage

Runtime is our cache file, we don’t need to worry about it

The above introduces the basic introduction to thinkphp 1, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

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