System variable Output
Normal template variables need to be assigned before they can be output in the template, but the system variables do not need to be directly in the template output, the output of system variables usually start with {$Think , for example:
-
{ $Think . Server . Script_name } //Output $_server[' script_name '] variable
-
{ $Think . session . user_id } //Output $_session[' user_id '] variable
-
{ $Think . Get . pagenumber } //Output $_get[' pagenumber '] variable
-
{ $Think . Cookie . name } //Output $_cookie[' name '] variable
Supports output,,,,,, $_SERVER
$_ENV
$_POST
$_GET
$_REQUEST
$_SESSION
and $_COOKIE
variables.
Constant output
You can also output constants
{$Think.const.MODULE_NAME}
or directly using
{$Think.MODULE_NAME}
Configuration output
The output configuration parameters are used:
{$Think.config.db_charset}
{$Think.config.url_model}
Language variables
Output language variables can be used:
{$Think.lang.page_error}
{$Think.lang.var_error}