where("name='wapconfig'")->one(); $wapconfig = string2array($wapconfigResult->value); if(!empty($wapconfig['style'])) { $this->sourcePath = Yii::$app->params['themePath'].$wapconfig['theme'].'/h5/assets/'.$wapconfig['style']; } else { $this->sourcePath = Yii::$app->params['themePath'].$wapconfig['theme'].'/h5/assets'; } } static function getInitCls() { static $initCls = NULL; if(!isset($initCls)) $initCls = new WapAsset(); return $initCls; } }