summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general/reserved_names.rst
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2011-10-05 20:34:52 +0200
committerDerek Jones <derek.jones@ellislab.com>2011-10-05 20:34:52 +0200
commit8ede1a2ecbb62577afd32996956c5feaf7ddf9b6 (patch)
tree2e960ec3b416b477f40bb546371f2d486f4a22f0 /user_guide_src/source/general/reserved_names.rst
parentd1ecd5cd4ae6ab5d37df9fbda14b93977b9e743c (diff)
replacing the old HTML user guide with a Sphinx-managed user guide
Diffstat (limited to 'user_guide_src/source/general/reserved_names.rst')
-rw-r--r--user_guide_src/source/general/reserved_names.rst66
1 files changed, 66 insertions, 0 deletions
diff --git a/user_guide_src/source/general/reserved_names.rst b/user_guide_src/source/general/reserved_names.rst
new file mode 100644
index 000000000..5ce7fc2ff
--- /dev/null
+++ b/user_guide_src/source/general/reserved_names.rst
@@ -0,0 +1,66 @@
+##############
+Reserved Names
+##############
+
+In order to help out, CodeIgniter uses a series of functions and names
+in its operation. Because of this, some names cannot be used by a
+developer. Following is a list of reserved names that cannot be used.
+
+Controller names
+----------------
+
+Since your controller classes will extend the main application
+controller you must be careful not to name your functions identically to
+the ones used by that class, otherwise your local functions will
+override them. The following is a list of reserved names. Do not name
+your controller any of these:
+
+- Controller
+- CI_Base
+- _ci_initialize
+- Default
+- index
+
+Functions
+---------
+
+- is_really_writable()
+- load_class()
+- get_config()
+- config_item()
+- show_error()
+- show_404()
+- log_message()
+- _exception_handler()
+- get_instance()
+
+Variables
+---------
+
+- $config
+- $mimes
+- $lang
+
+Constants
+---------
+
+- ENVIRONMENT
+- EXT
+- FCPATH
+- SELF
+- BASEPATH
+- APPPATH
+- CI_VERSION
+- FILE_READ_MODE
+- FILE_WRITE_MODE
+- DIR_READ_MODE
+- DIR_WRITE_MODE
+- FOPEN_READ
+- FOPEN_READ_WRITE
+- FOPEN_WRITE_CREATE_DESTRUCTIVE
+- FOPEN_READ_WRITE_CREATE_DESTRUCTIVE
+- FOPEN_WRITE_CREATE
+- FOPEN_READ_WRITE_CREATE
+- FOPEN_WRITE_CREATE_STRICT
+- FOPEN_READ_WRITE_CREATE_STRICT
+