Some system default variables for thinkphp3.2.3

Source: Internet
Author: User
Tags memory usage
constant description
Url Current module address
Current The template directory for the active module
app_name Current project name
app_public_path Project common file directory
app_tmpl_path project templates directory
config_path project configuration file directory
group_name Current group name
Is_iis belongs to IIS
lang_set Browser language
tmpl_path project templates directory
template_name Current template name
template_path Current template path
web_public_path Web site Public directory
Constants Description
ROOT Site root directory address/lab/thinkphp/3.2.3
APP Current project (entry file) address/lab/thinkphp/3.2.3/index.php
Url Current module address URL
ACTION Current Operation Address/lab/thinkphp/3.2.3/index.php/home/index/index
SELF Current URL Address/lab/thinkphp/3.2.3/
Current Current module's template directory
Action_name Current Action name Index
App_path Current project directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/
App_name Current project Name
App_tmpl_path Project Template Directory
App_public_path Project common file directory
Cache_path Project Template Cache Directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/runtime/cache/
Config_path Project configuration file Directory
Common_path Project common file directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/common/
Data_path Project data file directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/runtime/data/
Group_name Current group name
Html_path Project static file directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/html/
Is_apache Whether it belongs to the Apache Is_apache
is_cgi Whether it belongs to the CGI mode 1
Is_iis Whether it belongs to the IIS Is_iis
Is_win Whether it belongs to the Windows environment 0
Lang_set Browser Language Lang_set
Lib_path Project Class Library Directory/homepages/42/d472424913/htdocs/lib/thinkphp/3.2.3/thinkphp/library/
Log_path Project log file directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/runtime/logs/
Lang_path Project Language file directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/common/lang/
Module_name Current Module Name Home
memory_limit_on Is there a memory usage limit of 1
Magic_quotes_gpc MAGIC_QUOTES_GPC bool (FALSE)
Temp_path Project Temporary Files directory/kunden/homepages/42/d472424913/htdocs/lab/thinkphp/3.2.3/runtime/temp/
Tmpl_path Project Template Catalog Tmpl_path
Think_path thinkphp System Directory/homepages/42/d472424913/htdocs/lib/thinkphp/3.2.3/thinkphp/
Think_version thinkphp Version Number 3.2.3
Template_name Current template name Template_name
Template_path Current template path Template_path
Vendor_path Third-party class library Directory/homepages/42/d472424913/htdocs/lib/thinkphp/3.2.3/thinkphp/library/vendor/
Web_public_path Web site Public Directory Web_public_path

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: 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.