The path constants of the system and project are used in the system's default directory specification. you can change them by redefinition. if you do not want to customize directories, these constants do not need to be changed. Predefined Constants
Constant |
Description |
URL_COMMON = 0 |
Normal mode URL |
URL_PATHINFO = 1 |
PATHINFO URL |
URL_REWRITE = 2 |
REWRITE URL |
URL_COMPAT = 3 |
Compatible Mode URL |
HAS_ONE = 1 |
HAS_ONE Association definition |
BELONGS_TO = 2 |
BELONGS_TO Association definition |
Has_records = 3 |
HAS_MANY Association definition |
Many_to_records = 4 |
MANY_TO_MANY join definition |
THINK_VERSION |
Framework version number |
These predefined constants will not change as the environment changes. Path constants the path constants of the system and projects are used in the default directory specification of the system. you can change them by redefinition. if you do not want to customize directories, these constants do not need to be changed.
Constant name |
Description |
Default value |
CORE_PATH |
System core class library directory |
THINK_PATH. 'Lib /' |
EXTEND_PATH |
System Extension Directory |
THINK_PATH. 'extend /' |
MODE_PATH |
Mode extension directory |
EXTEND_PATH. 'mode /' |
ENGINE_PATH |
Engine extension directory |
EXTEND_PATH. 'engine /' |
VENDOR_PATH |
Third-party Class Library Directory |
EXTEND_PATH. 'vendor /' |
LIBRARY_PATH |
System Extension class library directory |
EXTEND_PATH. 'Library /' |
COMMON_PATH |
Project Public Directory |
APP_PATH. 'common /' |
LIB_PATH |
Project Class Library Directory |
APP_PATH. 'Lib /' |
RUNTIME_PATH |
Project runtime Directory |
APP_PATH. 'runtime /' |
CONF_PATH |
Project configuration Directory |
APP_PATH. 'conf /' |
LOG_PATH |
Project log Directory |
RUNTIME_PATH. 'logs /' |
CACHE_PATH |
Project template cache Directory |
RUNTIME_PATH. 'cache /' |
LANG_PATH |
Project language pack Directory |
APP_PATH. 'Lang /' |
TEMP_PATH |
Project cache Directory |
RUNTIME_PATH. 'temp /' |
DATA_PATH |
Project Data Directory |
RUNTIME_PATH. 'data /' |
TMPL_PATH |
Project Template directory |
APP_PATH. 'tpl /' |
HTML_PATH |
Static project cache Directory |
APP_PATH. 'HTML /' |
The following system constants change with the development environment or settings.
Constant name |
Description |
IS_CGI |
Whether it belongs to CGI mode |
IS_WIN |
Is it in Windows? |
IS_CLI |
Whether it belongs to the command line mode |
_ ROOT __ |
Website root directory address |
_ APP __ |
Current project (entry file) address |
_ GROUP __ |
URL of the current group |
_ URL __ |
URL of the current module |
_ ACTION __ |
URL of the current operation |
_ SELF __ |
Current URL |
_ INFO __ |
Current PATH_INFO string |
APP_NAME |
Current project name |
GROUP_NAME |
Current group name |
MODULE_NAME |
Current module name |
ACTION_NAME |
Current operation name |
APP_DEBUG |
Debug Mode enabled? |
MODE_NAME |
Current Mode name |
APP_PATH |
Current project path |
THINK_PATH |
System Framework path |
MEMORY_LIMIT_ON |
System Memory Statistics support |
RUNTIME_FILE |
Project compilation cache file name |
THEME_NAME |
Current topic name |
THEME_PATH |
Path of the current template topic |
APP_TMPL_PATH |
URL path of the current template |
LANG_SET |
Current browser language |
MAGIC_QUOTES_GPC |
MAGIC_QUOTES_GPC |