CI framework (Entry File Parsing)
<? Php // define the development ENVIRONMENT and the error level define ('enable', 'development '); ###################################### one of the changes is it a development ENVIRONMENT if (defined ('Environment ')) {switch (ENVIRONMENT) {case 'development ': error_reporting (E_ALL); // development ENVIRONMENT break; case 'testing': case 'production': error_reporting (0 ); // production environment break; default: exit ('application environment is not set correctly. ') ;}}/** set the path of the system file to share */$ system_path = '. /system ';##### ################################# Change the second custom system path/ ** set the application Path */$ application_folder = 'application '; ###################################### change custom Application Path/** ---------------------------------------------------------------------- * set the default controller ** by default, you will set the default controller in routes. php file. * force a hard-coded controller class/function for an application here. for most applications, * do not set the route in Here, ** // the disk path of the default controller // $ routing ['directory'] = ''; // default controller. for example, Mycontroller // $ routing ['controller'] = ''; // This controller function will be called. // $ routing ['function'] = ''; /** custom * configuration item ** ------------------------------------------------------------------- * it allows you to set custom config * to overwrite the default config value in config. php file. ** // $ assign_to_config ['name _ of_config _ Item'] = 'value of config item'; // -------------------------------------------------------------------- // The user configuration part ends, do not change the path below this line easily. // upgrade/** upgrade * stable system path upgrade * else * // set the correct path of the current magnetic field if (defined ('stdin ')) {chdir (dirname (_ F ILE _);} if (realpath ($ system_path )! = FALSE) {$ system_path = realpath ($ system_path ). '/';} // make sure there is a forward slash $ system_path = rtrim ($ system_path, '/') on the right of the path ,'/'). '/'; // verify the correctness of the system path if (! Is_dir ($ system_path) {exit ("Your system folder path does not appear to be set correctly. please open the following file and correct this :". pathinfo (_ FILE __, PATHINFO_BASENAME);}/** --------------------------------------------------------------- * after you know the relevant path, set the main FILE content ** ------------------------------------------------------------------- * // The Name Of The current FILE define ('self ', pathinfo (_ FILE __, PATHINFO _ BASENAME); // file extension define ('text ','. php '); // System Path definition define ('basepath', str_replace ("\", "/", $ system_path )); // The current FILE's controller define ('fcpath ', str_replace (SELF, '', _ FILE _); // The system path define ('sysdir ', trim (strrchr (trim (BASEPATH, '/'); // application path if (is_dir ($ application_folder )) {define ('apache', $ application_folder. '/');} else {if (! Is_dir (BASEPATH. $ application_folder. '/') {exit ("Your application folder path does not appear to be set correctly. please open the following file and correct this :". SELF);} define ('apppath', BASEPATH. $ application_folder. '/');}/** ---------------------------------------------------------------------- * load the boot file * Export */require_once BASEPATH. 'Core/CodeIgniter. php '; ###################################### change 4. Custom boot files (if any) /* End of file index. php * // * Location :. /index. php */