+ [refac] add $mao object to baseControl.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user