thinkphp Basic Primer (1), thinkphp Basic Primer _php Tutorial

Source: Internet
Author: User

thinkphp Basic Primer (1), thinkphp basics


Thinkphp directory is as follows, application as the name implies is the meaning of the application (our code here), public is the meaning of common files (mainly JS CSS, such as front-end resource files), thinkphp file is the framework of the core package (we generally do not operate it). It means that our backstage personnel write code should be written in the application directory.

The second step is to introduce the application subdirectory

Common is our public function or the directory of public configuration (public function means can be called at the controller layer), public configuration is some system configuration such as the configuration of a upload path, we can use C function c ("config") in the controller layer The constant called to the inside (the advantage is that changing one is equivalent to changing the controller layer in multiple places).

The home directory is the main place where we write MVC. Model View Controller. See section below for specific usage

Runtime is our cache file, we don't have to worry about him.

http://www.bkjia.com/PHPjc/1110979.html www.bkjia.com true http://www.bkjia.com/PHPjc/1110979.html techarticle thinkphp Basic Primer (1), thinkphp Basic Primer thinkphp directory is as follows, application as the name implies the meaning of the application (our code here), public is the meaning of common files ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.