标签:
1.对空模块的处理
if(function_exists(‘__hack_module‘)) {
// hack 方式定义扩展模块 返回Action对象
$module = __hack_module();
if(!is_object($module)) {
// 不再继续执行 直接返回
return ;
}
}else{
//是否定义Empty模块
$module = A($group.‘Empty‘);
if(!$module){
_404(L(‘_MODULE_NOT_EXIST_‘).‘:‘.MODULE_NAME);
}
}
1.__hack_module函数
2.Empty空模块
EmptyAction.class.php
标签:
原文地址:http://www.cnblogs.com/NaMaple/p/4276018.html