* Cannot request methods of base control.

This commit is contained in:
zhujinyong
2023-08-18 11:13:40 +08:00
parent 9d91f9888b
commit 45c71886d7
+20
View File
@@ -692,4 +692,24 @@ class router extends baseRouter
$this->rawParams = parent::mergeParams($defaultParams, $passedParams);
return $this->rawParams;
}
/**
* 加载一个模块:
*
* 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();
}
}