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();