Thinkphp configuration file path implementation method,

Source: Internet
Author: User

Thinkphp configuration file path implementation method,

As follows:

// System constant definition // Go To The THinkPHP manual to find echo "<br> ". "root directory address of the website ". _ ROOT __. ""; echo "<br> ". "entry file address ". _ APP __. ""; echo "<br> ". "Current module address ". _ URL __. ""; echo "<br> ". "current url address ". _ SELF __. ""; echo "<br> ". "Current Operation address ". _ ACTION __. ""; echo "<br> ". "template directory of the current module ". _ CURRENT __. ""; echo "<br> ". "current operation name ". ACTION_NAME. ""; echo "<br> ". "current project directory ". APP_PATH. ""; echo "<br> ". "Current Project name ". APP_NAME. ""; echo "<br> ". "template directory of the current project ". APP_TMPL_PATH. ""; echo "<br> ". "Public file directory of the project ". APP_PUBLIC_PATH. ""; echo "<br> ". "project configuration file directory ". CONFIG_PATH. ""; echo "<br> ". "Public file directory of the project ". COMMON_PATH. ""; // automatically cache all table-related information echo "<br> ". "project data file directory ". DATA_PATH. "data directory in runtime"; echo "<br> ". "". GROUP_NAME. ""; echo "<br> ". "". IS_CGI. ""; echo "<br> ". "". IS_WIN. ""; echo "<br> ". "". LANG_SET. ""; echo "<br> ". "". LOG_PATH. ""; echo "<br> ". "". LANG_PATH. ""; echo "<br> ". "". TMPL_PATH. ""; // the location where js is put for echo of public resources of multiple applications "<br> ". "". WEB_PUBLIC_PATH. "";

The implementation of the above thinkphp configuration file path is all the content shared by the editor. I hope to give you a reference and support for the customer's house.

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.