/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('admin.keywords.service'); $types = getConfig('system.keywords.type'); $this->assign('types', $types); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('admin.messageTemplate.service'); //获取应用配置文档配置参数 $templateTypes = getConfig('message.template.type'); $messageTags = getConfig('message.template.tags'); $this->assign('templateTypes', $templateTypes); $this->assign('messageTags', $messageTags); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('article.article.service'); //获取所有的子频道 $chanelService = Beans::get('admin.chanel.service'); $subChanels = $chanelService->getItems('pid > 0', 'id,pid,name,seo_title', 'sort_num ASC'); $chanels = $chanelService->getItems(null, 'id,pid,name,seo_title', 'sort_num ASC'); $this->assign('subChanels', $subChanels); $this->assign('chanels', ArrayUtils::changeArrayKey($chanels, 'id')); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('article.article.service'); //获取所有的频道 $chanelService = Beans::get('admin.chanel.service'); $chanels = $chanelService->getItems(null, 'id,pid,name,seo_title', 'sort_num ASC'); //提取一级频道 $topChanels = ArrayUtils::filterArrayByKey('pid', 0, $chanels); $tchanelIds = array(); foreach ($topChanels as $key => $value) { $topChanels[$key]['sub'] = ArrayUtils::filterArrayByKey('pid', $value['id'], $chanels); $tchanelIds[] = $value['id']; } //提取子频道 $subChanels = ArrayUtils::filterArrayByKey('pid', $tchanelIds, $chanels); $this->assign('chanels', ArrayUtils::changeArrayKey($chanels, 'id')); $this->assign('topChanels', $topChanels); $this->assign('subChanels', $subChanels); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('admin.role.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('media.media.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('tipoff.tipoff.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('article.tags.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('admin.friendlink.service'); $this->friendlink = Beans::get('admin.friendlink.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('artone.position.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('admin.chanel.service'); $this->chanelService = Beans::get('admin.chanel.service'); }
/** * 初始化方法 */ public function C_start() { parent::C_start(); $this->setServiceBean('user.user.service'); }