The 11 Most Common Constants in CodeIgniter
ENVIRONMENT The product environment, which has three types: development, testing, and production.
SELF The name of the CI entry file. For example, mine is
index.php.BASEPATH The path to the main CI folder. The default is the path to the
systemfolder. For example, mine is/home/work/www/CodeIgniter-3.0.0/system/.FCPATH The path where the main entry file (SELF) is located. For example, mine is
/home/work/www/CodeIgniter-3.0.0/.SYSDIR The name of the main CI folder. The default is
system.APPPATH The path to the main product folder. The default is the path to the
applicationfolder. For example, mine is/home/work/www/CodeIgniter-3.0.0/application/.VIEWPATH The path where template files are stored. The default is the path to the
viewsfolder. For example, mine is/home/work/www/CodeIgniter-3.0.0/application/views/.CI_VERSION The version number of CI.
MB_ENABLED Whether the
mbstringextension is loaded. Returnstrueif loaded, otherwisefalse.ICONV_ENABLED Whether the
iconvextension is loaded. Returnstrueif loaded, otherwisefalse.UTF8_ENABLED Whether UTF-8 is available.
There are also some special global variables stored in APPPATH . 'config/constants.php'. Generally, the values within are not called or modified.