Home  >  Article  >  Backend Development  >  哪位高手能小弟我解读下这几段代码什么意思呀

哪位高手能小弟我解读下这几段代码什么意思呀

WBOY
WBOYOriginal
2016-06-13 13:44:16925browse

谁能我解读下这几段代码什么意思呀
$fanwe = &FanweService::instance();
$fanwe->cache_list[] = 'forums';
$fanwe->initialize();
require fimport('module/index');
IndexModule::index();

谢谢呀

------解决方案--------------------
$fanwe = &FanweService::instance();
// 引用> 类中静态函数(实例化用吧)。
$fanwe->cache_list[] = 'forums';
// 给类中的cache_list参数加个数组值。
$fanwe->initialize();
// 执行initialize函数
require fimport('module/index');
// 包含文件进来
IndexModule::index();
// 同一

Statement:
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