Example #1
0
 public function beforeAction($action)
 {
     parent::beforeAction($action);
     //加载用户中心 公共css,js
     Yii::app()->clientScript->registerCssFile($this->_stylePath . "/css/user.css");
     return true;
 }
Example #2
0
 public function init()
 {
     parent::init();
     //导航标示
     $this->_menu_unique = 'goods';
     //栏目
     $this->_catalog = Catalog::model()->getCatalog($this->_type_ids['goods']);
 }
 public function init()
 {
     parent::init();
     //栏目
     $this->_catalog = Catalog::model()->findAll('status=:status AND type = :type', array(':status' => 'Y', ':type' => $this->_type_ids['video']));
     $this->_video_type = array('comedy' => '喜剧', 'active' => '动作', 'story' => '剧情', 'science' => '科幻', 'terrified' => '惊悚', 'war' => '战争', 'sexy' => '伦理');
     //导航标示
     $this->_menu_unique = 'video';
 }
Example #4
0
 public function init()
 {
     parent::init();
     //一级栏目
     $this->_catalog = Catalog::getTopCatalog(true, $this->_type_ids['video']);
     $this->_video_type = array('comedy' => '喜剧', 'active' => '动作', 'story' => '剧情', 'science' => '科幻', 'terrified' => '惊悚', 'war' => '战争', 'sexy' => '伦理');
     //导航标示
     $this->_menu_unique = 'video';
 }
Example #5
0
 public function init()
 {
     parent::init();
     //导航标示
     $this->_menu_unique = 'soft';
     //一级栏目
     $this->_catalog = Catalog::getTopCatalog(true, $this->_type_ids['soft']);
     //标签
     $this->_tags = Tag::model()->findAll(array('order' => 'data_count DESC', 'limit' => 20));
 }
Example #6
0
 public function init()
 {
     parent::init();
     //栏目
     $this->_catalog = Catalog::model()->getCatalog($this->_type_ids['image']);
     //导航标示
     $this->_menu_unique = 'image';
     //标签
     $this->_tags = Tag::model()->findAll(array('order' => 'data_count DESC', 'limit' => 20));
 }
 public function init()
 {
     parent::init();
     //邮箱激活设置
     if ($this->_setting['email_active'] == 'open') {
         $this->_active_need = true;
     } else {
         $this->_active_need = false;
     }
 }
 public function init()
 {
     parent::init();
 }
Example #9
0
 public function init()
 {
     parent::init();
     //标签
     $this->_tags = Tag::model()->findAll(array('order' => 'data_count DESC', 'limit' => 20));
 }
 public function init()
 {
     parent::init();
     //导航标示
     $this->_menu_unique = 'question';
 }