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

WBOY
Release: 2016-06-13 10:12:05
Original
926 people have browsed it

谁能我解读下这几段代码什么意思呀
$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();
// 同一

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!