What is the function of this method?-php Tutorial

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.