blob: d912923630189964a06b2393d7978d8de2cebe2e [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
19- Controller
20- CI_Base
21- _ci_initialize
22- Default
23- index
24
25Functions
26---------
27
Andrey Andreev16a704c2012-11-09 17:25:00 +020028- :php:func:`is_really_writable()`
29- ``load_class()``
30- ``get_config()``
31- :php:func:`config_item()`
32- :php:func:`show_error()`
33- :php:func:`show_404()`
34- :php:func:`log_message()`
35- :php:func:`get_mimes()`
36- :php:func:`html_escape()`
37- :php:func:`get_instance()`
38- ``_exception_handler()``
39- ``_stringify_attributes()``
Derek Jones8ede1a22011-10-05 13:34:52 -050040
41Variables
42---------
43
Andrey Andreev16a704c2012-11-09 17:25:00 +020044- ``$config``
45- ``$db``
46- ``$lang``
Derek Jones8ede1a22011-10-05 13:34:52 -050047
48Constants
49---------
50
51- ENVIRONMENT
Derek Jones8ede1a22011-10-05 13:34:52 -050052- FCPATH
53- SELF
54- BASEPATH
55- APPPATH
vlakoff5f733c42012-09-15 10:48:17 +020056- VIEWPATH
Derek Jones8ede1a22011-10-05 13:34:52 -050057- CI_VERSION
58- FILE_READ_MODE
59- FILE_WRITE_MODE
60- DIR_READ_MODE
61- DIR_WRITE_MODE
62- FOPEN_READ
63- FOPEN_READ_WRITE
64- FOPEN_WRITE_CREATE_DESTRUCTIVE
65- FOPEN_READ_WRITE_CREATE_DESTRUCTIVE
66- FOPEN_WRITE_CREATE
67- FOPEN_READ_WRITE_CREATE
68- FOPEN_WRITE_CREATE_STRICT
Andrey Andreev16a704c2012-11-09 17:25:00 +020069- FOPEN_READ_WRITE_CREATE_STRICT