From 6f643638eaa121ddf5a4995cde57764c1ab624df Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 28 Oct 2024 13:08:26 +0800 Subject: [PATCH] + [refac] add $mao object to baseControl. --- framework/base/control.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/base/control.class.php b/framework/base/control.class.php index b18aa6d2ac..eb67021721 100644 --- a/framework/base/control.class.php +++ b/framework/base/control.class.php @@ -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();