Codeigniter MVC Framework PHP

Controller, Functions, Variables and Constants Reserved Names

Reserved Names

CodeIgniter uses some reserved name of function, method, class and variable. Because of this, some names cannot be used by programmer or developer. Following is a list of reserved names that cannot be used.

Controller names

There are some main application controller are defined in this framework. Controller classes extend the main application controller. Below is the list of reserved controller name which is not used by developer.

  • CI_Controller
  • Default
  • index

Functions

  • is_php()
  • is_really_writable()
  • load_class()
  • is_loaded()
  • get_config()
  • config_item()
  • show_error()
  • show_404()
  • log_message()
  • set_status_header()
  • get_mimes()
  • html_escape()
  • remove_invisible_characters()
  • is_https()
  • function_usable()
  • get_instance()
  • _error_handler()
  • _exception_handler()
  • _stringify_attributes()

Variables

  • $config
  • $db
  • $lang

Constants

  • ENVIRONMENT
  • FCPATH
  • SELF
  • BASEPATH
  • APPPATH
  • VIEWPATH
  • CI_VERSION
  • MB_ENABLED
  • ICONV_ENABLED
  • UTF8_ENABLED
  • 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
  • SHOW_DEBUG_BACKTRACE
  • EXIT_SUCCESS
  • EXIT_ERROR
  • EXIT_CONFIG
  • EXIT_UNKNOWN_FILE
  • EXIT_UNKNOWN_CLASS
  • EXIT_UNKNOWN_METHOD
  • EXIT_USER_INPUT
  • EXIT_DATABASE
  • EXIT__AUTO_MIN
  • EXIT__AUTO_MAX

Leave a Reply

Your email address will not be published. Required fields are marked *