Codeigniter php
frameworks in the previous post were talk about controllers until 7 parts.
Now I will give your information about Reserved Names in codeigniter. What is “reserved
names”? In the order to help out, codeigniter uses a series of function 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.
The first is Controllers names. Since your controller
classes will extends 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. Codeigniter
php frameworks have list of reserved names. Do not name your controller any
of these:
·
Controller
·
CI_Base
·
_ci_initialize
·
Default
·
Index
At the Functions, this is from Codeigniter php frameworks.
·
Is_really_writable()
·
load_class()
·
get_config()
·
config_item()
·
show_error()
·
show_404()
·
log_message()
·
_exception_handler()
·
Get_instance()
At the Variables, this is from Codeigniter php frameworks.
·
$config
·
$mimes
·
$lang
At the Constants, this is from Codeigniter php frameworks.
·
ENVIRONTMENT
·
EXT
·
FCPATH
·
SELF
·
BASEPATH
·
APPPATH
·
CI_VERSION
·
FILE_RAD_MODE
·
FILE_WRITE_MOD
·
DIR_READ_MODE
·
DIR_WRITE_MOD
·
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
This post of Codeigniter php frameworks: reserved names is
references from http://codeigniter.com/user_guide/general/reserved_names.html.
Comments
Post a Comment