Ing between common function paths and configuration item paths in ThinkPHP, thinkphp function _ PHP Tutorial

Source: Internet
Author: User
ING analysis of common function paths and configuration item paths in ThinkPHP, and thinkphp functions. The ing between common function paths and configuration item paths in ThinkPHP is analyzed. the thinkphp function in this article analyzes the ing between common function paths and configuration item paths in ThinkPHP. We will share with you the ING analysis of common function paths and configuration item paths in ThinkPHP, and thinkphp functions.

This article analyzes the ing between common function paths and configuration item paths in ThinkPHP. Share it with you for your reference. The specific analysis is as follows:

When using public functions in ThinkPHP (a single entry file corresponds to an independent project), you can write a public function file in the Common folder and write the file name as common. php files are automatically loaded by the system. if they are written as other function names, they are not automatically loaded, but there are two processing mechanisms.

1. manually load the file ('@. function') when using it. in this way, the file will be manually loaded. @ Indicates that it is in the Common folder under this project.

2. configure in the configuration file

The code is as follows:

'Load _ EXT_FILE '=> 'function'

In ThinkPHP, _ PUBLICC _ is not a constant but a ing. it is the Public directory under the root directory by default and can be modified in the configuration file,

The code is as follows:

'Tmpl _ PARSE_STRING '=>. 'public'

I hope this article will help you with ThinkPHP framework programming.

Examples in this article analyze the ing between common function paths and configuration item paths in ThinkPHP. Share it with you...

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.