Thinkphp的常量

    [APPNAME] => Sample [APP_PATH] => ./Sample/ [FILE_PATH] => ./Sample/file/ [APP_DEBUG] => 1 [MEMORY_LIMIT_ON] => 1 [RUNTIME_PATH] => ./Sample/Runtime/ [RUNTIME_FILE] => ./Sample/Runtime/~runtime.php [THINK_PATH] => D:\wamp\www\cbase\ThinkPHP/ [THINK_VERSION] => 3.0 [THINK_RELEASE] => 20120313 [MAGIC_QUOTES_GPC] => [IS_CGI] => 0 [IS_WIN] => 1
    [IS_CLI] => 0 [_PHP_FILE
    ] => /cbase/sample.php [ROOT] => /cbase [URLCOMMON] => 0 [URLPATHINFO] => 1 [URLREWRITE] => 2 [URLCOMPAT] => 3 [COREPATH] => D:\wamp\www\cbase\ThinkPHP/Lib/ [EXTENDPATH] => D:\wamp\www\cbase\ThinkPHP/Extend/ [MODEPATH] => D:\wamp\www\cbase\ThinkPHP/Extend/Mode/ [ENGINEPATH] => D:\wamp\www\cbase\ThinkPHP/Extend/Engine/ [VENDOR_PATH] => D:\wamp\www\cbase\ThinkPHP/Extend/Vendor/ [LIBRARY_PATH] => D:\wamp\www\cbase\ThinkPHP/Extend/Library/ [COMMON_PATH] => ./Sample/Common/ [LIB_PATH] => ./Sample/Lib/ [CONF_PATH] => ./Sample/Conf/ [LANG_PATH] => ./Sample/Lang/ [TMPL_PATH] => ./Sample/Tpl/ [HTML_PATH] => ./Sample/Html/ [LOG_PATH] => ./Sample/Runtime/Logs/ [TEMP_PATH] => ./Sample/Runtime/Temp/ [DATA_PATH] => ./Sample/Runtime/Data/ [CACHE_PATH] => ./Sample/Runtime/Cache/ [PHP_FILE] => /cbase/sample.php?s= [MODULE_NAME] => Index [P_ACTION_NAME] => index [ACTION_NAME] => index [__SELF] => /cbase/sample.php [__APP] => /cbase/sample.php?s= [__URL] => /cbase/sample.php?s=/Index [__ACTION] => /cbase/sample.php?s=/Index/index [THEME_NAME] => [THEME_PATH] => ./Sample/Tpl/ [APP_TMPL_PATH] => /cbase/Sample/Tpl/

    Thinkphp的模板分析常量
    thinkphp 3.0 的定义常量 - 图1
    在config文件中定义参数,可以在模板中直接使用,并不需要去使用变量标识符去定义