Home > Backend Development > PHP Tutorial > Thinkphp basic introduction (1), thinkphp basic introduction_PHP tutorial

Thinkphp basic introduction (1), thinkphp basic introduction_PHP tutorial

WBOY
Release: 2016-07-12 08:56:53
Original
1030 people have browsed it

Thinkphp basic introduction (1), thinkphp basic introduction

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

The second step will introduce the Application subdirectory

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

The Home directory is the main location where we write mvc. Model View Controller. Please see the next section for specific usage

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1110979.htmlTechArticlethinkphp basic introduction (1), thinkphp basic introduction ThinkPHP directory is as follows, Application, as the name suggests, means application (our code Put it here), Public means public documents...
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