public function init()
 {
     //栏目
     parent::init();
     $this->_catalog = Catalog::model()->findAll();
     $this->_model_type = ModelType::model()->findAll();
 }
Example #2
0
 public function init()
 {
     parent::init();
     parent::auth();
     $this->_db = Yii::app()->db;
     $this->_bakupPath = $this->_webRoot . '/protected/data/dbbak/';
 }
Example #3
0
 public function init()
 {
     parent::init();
     parent::auth();
     $this->_db = Yii::app()->db;
     exit('暂不开启,后续待开发');
 }
Example #4
0
 public function init()
 {
     parent::init();
     $this->_type = $this->_type_ids['video'];
     //视频栏目
     $this->_catalog = Catalog::getTopCatalog(true, $this->_type);
     $this->_video_type = array('comedy' => '喜剧', 'active' => '动作', 'story' => '剧情', 'science' => '科幻', 'terrified' => '惊悚', 'war' => '战争', 'sexy' => '伦理');
 }
 public function init()
 {
     parent::init();
     //内容模型id
     $this->_type = $this->_type_ids['soft'];
     //栏目
     $this->_catalog = Catalog::model()->findAll('status=:status AND type=:type', array(':status' => 'Y', ':type' => $this->_type));
 }
Example #6
0
 public function init()
 {
     parent::init();
     //栏目
     $this->_catalog = Catalog::model()->findAll('status=:status', array('status' => 'Y'));
     //专题
     $this->_special = Special::model()->findAll('status=:status', array('status' => 'Y'));
 }
Example #7
0
function main()
{
    $start = microtime(true);
    require BACKEND_FOLDER . '/classes/Backend.obj.php';
    Backend::init();
    Backend::add('start', $start);
    Controller::serve();
}
Example #8
0
 public function init()
 {
     parent::init();
     $this->_type = $this->_type_ids['video'];
     //视频栏目
     $this->_catalog = Catalog::model()->findAll('status=:status AND type=:type', array(':status' => 'Y', ':type' => $this->_type));
     $this->_video_type = array('comedy' => '喜剧', 'active' => '动作', 'story' => '剧情', 'science' => '科幻', 'terrified' => '惊悚', 'war' => '战争', 'sexy' => '伦理');
 }
Example #9
0
 public function init()
 {
     parent::init();
     //内容模型id
     $this->_type = $this->_type_ids['soft'];
     //栏目
     $this->_catalog = Catalog::getTopCatalog(true, $this->_type);
 }
 public function init()
 {
     parent::init();
     $goods = Goods::model()->findAll(array('order' => 'id desc', 'limit' => 100));
     foreach ((array) $goods as $item) {
         $this->_goods[''] = "==请选择主产品==";
         $this->_goods[$item->id] = $item->goods_name;
     }
 }
Example #11
0
 public function init()
 {
     parent::init();
     //广告位
     $positions = AdPosition::model()->findAll();
     foreach ((array) $positions as $pv) {
         $this->_adposition[''] = "==请选择广告位==";
         $this->_adposition[$pv->id] = $pv->position;
     }
 }
Example #12
0
 public function init()
 {
     parent::init();
     //内容模型id
     $this->_type = $this->_type_ids['image'];
     //图集栏目
     $this->_catalog = Catalog::getTopCatalog(true, $this->_type);
     //专题
     $this->_special = Special::model()->findAll('status=:status', array('status' => 'Y'));
 }
Example #13
0
 public function init()
 {
     parent::init();
     //广告位
     $positions = AdPosition::model()->findAll(array('condition' => 'status = "' . AdPosition::STATUS_SHOW . '"'));
     foreach ((array) $positions as $pv) {
         $this->_adposition[''] = "==请选择广告位==";
         $this->_adposition[$pv->id] = $pv->title;
     }
 }
 public function init()
 {
     parent::init();
     //内容模型id
     $this->_type = $this->_type_ids['post'];
     //文章栏目
     $this->_catalog = Catalog::model()->findAll('status=:status AND type=:type', array(':status' => 'Y', ':type' => $this->_type));
     //专题
     $this->_special = Special::model()->findAll('status=:status', array('status' => 'Y'));
 }
Example #15
0
 public function init()
 {
     parent::init();
     //用户组
     $group_list = UserGroup::model()->findAll();
     if ($group_list) {
         foreach ($group_list as $g) {
             $this->group_list[$g['id']] = $g->attributes;
         }
     }
 }
 public function init()
 {
     parent::init();
     $this->_recom_type = ModelType::model()->findAll();
 }
Example #17
0
<?php

require_once dirname(__FILE__) . '/../Backend.class.php';
$be = new Backend();
$be->init('127.0.0.1', 13123);
print_r($be->add('test', __DIR__ . '/scripts/test.php', array('writelog' => TRUE)));
print_r($be->start('test'));
print_r($be->read('test'));
Example #18
0
 public function init()
 {
     parent::init();
     $this->backup = ROOT_PATH . '/protected/data/backup';
 }
Example #19
0
 public function init()
 {
     parent::init();
 }
 public function init()
 {
     //菜单
     parent::init();
     $this->_menu = Menu::model()->findAll();
 }