all(); if(is_array($configResultList))foreach($configResultList as $configResult) { $configName = str_replace('config','',$configResult->name); $configName = str_replace('attachment','att',$configName).'config'; $this->$configName = string2array($configResult->value); }*/ /*if(empty($this->cmsconfig['news_breadname']))$this->cmsconfig['news_breadname'] = '资讯'; if(empty($this->cmsconfig['news_contentname']))$this->cmsconfig['news_contentname'] = '资讯'; if(empty($this->docconfig['breadname']))$this->docconfig['breadname'] = '文档'; if(empty($this->docconfig['docname']))$this->docconfig['docname'] = '文档'; if(empty($this->docconfig['colname']))$this->docconfig['colname'] = '合辑'; $this->floatAd = AdData::find()->where("space_id=(select space_id from {{%ad_space}} where space_no='b9') and status=1 and start_time<=".TIMESTAMP." and end_time>=".TIMESTAMP)->one(); $this->allCategorys = json_decode(Yii::$app->cache->get(CacheId::categoryCacheId()),true);*/ } }