Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 1 | ############## |
| 2 | Reserved Names |
| 3 | ############## |
| 4 | |
| 5 | In order to help out, CodeIgniter uses a series of functions and names |
| 6 | in its operation. Because of this, some names cannot be used by a |
| 7 | developer. Following is a list of reserved names that cannot be used. |
| 8 | |
| 9 | Controller names |
| 10 | ---------------- |
| 11 | |
| 12 | Since your controller classes will extend the main application |
| 13 | controller you must be careful not to name your functions identically to |
| 14 | the ones used by that class, otherwise your local functions will |
| 15 | override them. The following is a list of reserved names. Do not name |
| 16 | your controller any of these: |
| 17 | |
| 18 | - Controller |
| 19 | - CI_Base |
| 20 | - _ci_initialize |
| 21 | - Default |
| 22 | - index |
| 23 | |
| 24 | Functions |
| 25 | --------- |
| 26 | |
| 27 | - is_really_writable() |
| 28 | - load_class() |
| 29 | - get_config() |
| 30 | - config_item() |
| 31 | - show_error() |
| 32 | - show_404() |
| 33 | - log_message() |
| 34 | - _exception_handler() |
| 35 | - get_instance() |
| 36 | |
| 37 | Variables |
| 38 | --------- |
| 39 | |
| 40 | - $config |
| 41 | - $mimes |
| 42 | - $lang |
| 43 | |
| 44 | Constants |
| 45 | --------- |
| 46 | |
| 47 | - ENVIRONMENT |
| 48 | - EXT |
| 49 | - FCPATH |
| 50 | - SELF |
| 51 | - BASEPATH |
| 52 | - APPPATH |
| 53 | - CI_VERSION |
| 54 | - FILE_READ_MODE |
| 55 | - FILE_WRITE_MODE |
| 56 | - DIR_READ_MODE |
| 57 | - DIR_WRITE_MODE |
| 58 | - FOPEN_READ |
| 59 | - FOPEN_READ_WRITE |
| 60 | - FOPEN_WRITE_CREATE_DESTRUCTIVE |
| 61 | - FOPEN_READ_WRITE_CREATE_DESTRUCTIVE |
| 62 | - FOPEN_WRITE_CREATE |
| 63 | - FOPEN_READ_WRITE_CREATE |
| 64 | - FOPEN_WRITE_CREATE_STRICT |
| 65 | - FOPEN_READ_WRITE_CREATE_STRICT |
| 66 | |