The use of system constants in thinkphp

Source: Internet
Author: User

/wen the URL address of the current module

/wen/postname the URL address of the current operation

/thinkphp-changliang/Current URL Address

App_debug whether to turn on debug mode (frame two modes: "Default mode" production (in-line mode),

Development (debugging) in general, we use the development debug mode in the case of debugging,

In order to make it easier to know the wrong address, convenient for timely modification. )

Mode_name Current Mode Name

App_tmpl_path Current Template URL path

App_path Current Project Path

Think_path System Framework Path

Currently three types are available for direct use in programming

The path of the 1.__module__/is equivalent to the http://localhost/xampp/sse/index.php/Teacher/path directly to the controller name

The path of 2.__public__/is equivalent to the http://localhost/xampp/sse/Public/path, but the program entry file accesses the public directory of the program directly

The path of the 3.__controller__/is equivalent to the static file that http://localhost/xampp/sse/index.php/Teacher/Message accesses to the view when it accesses the controller

The use of system constants in thinkphp

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.