blob: 5d745cba6c167e97ff06881e009c76138ca625de [file] [log] [blame]
Derek Jones8ede1a22011-10-05 13:34:52 -05001##############
2Reserved Names
3##############
4
Andrey Andreev16a704c2012-11-09 17:25:00 +02005In order to help out, CodeIgniter uses a series of function, method,
6class and variable names in its operation. Because of this, some names
7cannot be used by a developer. Following is a list of reserved names
8that cannot be used.
Derek Jones8ede1a22011-10-05 13:34:52 -05009
10Controller names
11----------------
12
13Since your controller classes will extend the main application
Andrey Andreev16a704c2012-11-09 17:25:00 +020014controller you must be careful not to name your methods identically to
15the ones used by that class, otherwise your local methods will
Derek Jones8ede1a22011-10-05 13:34:52 -050016override them. The following is a list of reserved names. Do not name
17your controller any of these:
18
vlakoff0cd17c32015-01-04 20:27:29 +010019- CI_Controller
Derek Jones8ede1a22011-10-05 13:34:52 -050020- Default
21- index
22
23Functions
24---------
25
Andrey Andreevcd3d9db2015-02-02 13:41:01 +020026- :php:func:`is_php()`
27- :php:func:`is_really_writable()`
Andrey Andreev16a704c2012-11-09 17:25:00 +020028- ``load_class()``
vlakoff9a6032d2013-03-05 23:03:12 +010029- ``is_loaded()``
Andrey Andreev16a704c2012-11-09 17:25:00 +020030- ``get_config()``
Andrey Andreevcd3d9db2015-02-02 13:41:01 +020031- :php:func:`config_item()`
32- :php:func:`show_error()`
33- :php:func:`show_404()`
34- :php:func:`log_message()`
35- :php:func:`set_status_header()`
36- :php:func:`get_mimes()`
37- :php:func:`html_escape()`
38- :php:func:`remove_invisible_characters()`
39- :php:func:`is_https()`
40- :php:func:`function_usable()`
41- :php:func:`get_instance()`
Andrey Andreeva0471dc2014-11-04 19:22:38 +020042- ``_error_handler()``
Andrey Andreev16a704c2012-11-09 17:25:00 +020043- ``_exception_handler()``
44- ``_stringify_attributes()``
Derek Jones8ede1a22011-10-05 13:34:52 -050045
46Variables
47---------
48
Andrey Andreev16a704c2012-11-09 17:25:00 +020049- ``$config``
50- ``$db``
51- ``$lang``
Derek Jones8ede1a22011-10-05 13:34:52 -050052
53Constants
54---------
55
56- ENVIRONMENT
Derek Jones8ede1a22011-10-05 13:34:52 -050057- FCPATH
58- SELF
59- BASEPATH
60- APPPATH
vlakoff5f733c42012-09-15 10:48:17 +020061- VIEWPATH
Derek Jones8ede1a22011-10-05 13:34:52 -050062- CI_VERSION
Andrey Andreevbe1496d2014-02-11 22:48:45 +020063- MB_ENABLED
64- ICONV_ENABLED
65- UTF8_ENABLED
Derek Jones8ede1a22011-10-05 13:34:52 -050066- FILE_READ_MODE
67- FILE_WRITE_MODE
68- DIR_READ_MODE
69- DIR_WRITE_MODE
70- FOPEN_READ
71- FOPEN_READ_WRITE
72- FOPEN_WRITE_CREATE_DESTRUCTIVE
73- FOPEN_READ_WRITE_CREATE_DESTRUCTIVE
74- FOPEN_WRITE_CREATE
75- FOPEN_READ_WRITE_CREATE
76- FOPEN_WRITE_CREATE_STRICT
vlakoffb527bb52013-03-05 21:58:49 +010077- FOPEN_READ_WRITE_CREATE_STRICT
ftwbzhaoc836f2a2015-05-07 18:05:33 +080078- SHOW_DEBUG_BACKTRACE
vlakoffb527bb52013-03-05 21:58:49 +010079- EXIT_SUCCESS
80- EXIT_ERROR
81- EXIT_CONFIG
82- EXIT_UNKNOWN_FILE
83- EXIT_UNKNOWN_CLASS
84- EXIT_UNKNOWN_METHOD
85- EXIT_USER_INPUT
86- EXIT_DATABASE
87- EXIT__AUTO_MIN
88- EXIT__AUTO_MAX