What is the function of this method?
Public static function init () {// config info global $ setting_config; self: parse_conf ($ setting_config); define ('md5 _ key ', md5 ($ setting_config ['md5 _ key']); if (function_exists ('date _ default_timezone_set ')) {if (is_numeric ($ setting_config ['time _ zone ']) {@ date_default_timezone_set ('Asia/Shanghai ');} else {@ date_default_timezone_set ($ setting_config ['time _ zone ']) ;}// session start self: start_session (); // output to the template Tpl :: output ('setting _ config', $ setting_config); // read language Language: read ('core _ lang_index ');}
Reply to discussion (solution)
Init
As the name suggests, it is used to complete the default parameter settings of the project.
Initialize the framework settings.
Several steps are performed.
1. define the MD5_KEY value
2. set default timezone
3. enable session
4. add the setting_config value to the output.
5. load core_lang_index