+ [refac] add $mao object to baseControl.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent 544879c8f1
commit 6f643638ea
+10
View File
@@ -168,6 +168,15 @@ class baseControl
*/
public $devicePrefix;
/**
* $mao对象,用于访问缓存。
* The $mao object, used to access the cache.
*
* @var object
* @access public
*/
public $mao;
/**
* 构造方法。
*
@@ -198,6 +207,7 @@ class baseControl
$this->config = $config;
$this->lang = $lang;
$this->dbh = $dbh;
$this->mao = $app->mao;
$this->viewType = $this->app->getViewType();
$this->appName = $appName ?: $this->app->getAppName();