Merge remote-tracking branch 'origin/master' into Merge184

This commit is contained in:
tanghucheng
2023-11-21 19:43:29 -05:00
149 changed files with 1597 additions and 1842 deletions
+20
View File
@@ -716,4 +716,24 @@ class router extends baseRouter
return parent::mergeParams($defaultParams, $passedParams);
}
/**
* 加载一个模块:
*
* Load a module.
*
* @access public
* @return bool|object if the module object of die.
*/
public function loadModule()
{
/* 不能直接请求基类的方法 Cannot call methods of base control class. */
if(method_exists('Control', $this->methodName))
{
echo 'Cannot call methods of base control class.';
return false;
}
return parent::loadModule();
}
}