* Cann't call the member variables of a class in the magic method.

This commit is contained in:
Guan Xiying
2022-10-20 11:00:11 +08:00
parent 86df3868fb
commit 5498c0872b
+1 -1
View File
@@ -646,7 +646,7 @@ class control extends baseControl
*/
public function __call($method, $arguments)
{
$moduleName = $this->moduleName();
$moduleName = $this->app->getModuleName();
$zenClass = $moduleName . 'Zen';
if(is_callable(array($this->{$zenClass}, $method))) return call_user_func_array(array($this->{$zenClass}, $method), $arguments);