这个步骤的功能是啥
Jun 13, 2016 pm 12:20 PM
config
default
nbsp
这个方法的功能是啥
public static function init() {<br /> // config info<br /> global $setting_config;<br /> self::parse_conf($setting_config);<br /> define('MD5_KEY',md5($setting_config['md5_key']));<br /><br /> if(function_exists('date_default_timezone_set')){<br /> if (is_numeric($setting_config['time_zone'])){<br /> @date_default_timezone_set('Asia/Shanghai');<br /> }else{<br /> @date_default_timezone_set($setting_config['time_zone']);<br /> }<br /> }<br /><br /> //session start<br /> self::start_session();<br /> <br /> //output to the template<br /> Tpl::output('setting_config',$setting_config);<br /> <br /> //read language<br /> Language::read('core_lang_index');<br /> }
Copy after login
------解决思路----------------------
init 中文释义:初始化
顾名思义,它是用来完成项目默认参数设置的
------解决思路----------------------
初始化框架设置。
执行了几步设置
1.定义MD5_KEY的值
2.设置default timezone
3.开启session
4.把setting_config的值加入到output可使用
5.加载core_lang_index
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution: Your organization requires you to change your PIN

How to adjust window border settings on Windows 11: Change color and size

How to change title bar color on Windows 11?

How to enable or disable taskbar thumbnail previews on Windows 11

OOBELANGUAGE Error Problems in Windows 11/10 Repair

10 Ways to Adjust Brightness on Windows 11

How to turn off private browsing authentication for iPhone in Safari?
