コード例 #1
0
 public function init()
 {
     //栏目
     parent::init();
     $this->_catalog = Catalog::model()->findAll();
     $this->_model_type = ModelType::model()->findAll();
 }
コード例 #2
0
ファイル: DatabaseController.php プロジェクト: SallyU/yiicms
 public function init()
 {
     parent::init();
     parent::auth();
     $this->_db = Yii::app()->db;
     $this->_bakupPath = $this->_webRoot . '/protected/data/dbbak/';
 }
コード例 #3
0
ファイル: AuthController.php プロジェクト: SallyU/yiicms
 public function init()
 {
     parent::init();
     parent::auth();
     $this->_db = Yii::app()->db;
     exit('暂不开启,后续待开发');
 }
コード例 #4
0
ファイル: VideoController.php プロジェクト: jerrylsxu/yiifcms
 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' => '伦理');
 }
コード例 #5
0
 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));
 }
コード例 #6
0
ファイル: SpecialController.php プロジェクト: SallyU/yiicms
 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'));
 }
コード例 #7
0
ファイル: index.php プロジェクト: jrgns/backend-php
function main()
{
    $start = microtime(true);
    require BACKEND_FOLDER . '/classes/Backend.obj.php';
    Backend::init();
    Backend::add('start', $start);
    Controller::serve();
}
コード例 #8
0
ファイル: VideoController.php プロジェクト: SallyU/yiicms
 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' => '伦理');
 }
コード例 #9
0
ファイル: SoftController.php プロジェクト: jerrylsxu/yiifcms
 public function init()
 {
     parent::init();
     //内容模型id
     $this->_type = $this->_type_ids['soft'];
     //栏目
     $this->_catalog = Catalog::getTopCatalog(true, $this->_type);
 }
コード例 #10
0
 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;
     }
 }
コード例 #11
0
 public function init()
 {
     parent::init();
     //广告位
     $positions = AdPosition::model()->findAll();
     foreach ((array) $positions as $pv) {
         $this->_adposition[''] = "==请选择广告位==";
         $this->_adposition[$pv->id] = $pv->position;
     }
 }
コード例 #12
0
ファイル: ImageController.php プロジェクト: jerrylsxu/yiifcms
 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'));
 }
コード例 #13
0
ファイル: AdController.php プロジェクト: jerrylsxu/yiifcms
 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;
     }
 }
コード例 #14
0
 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'));
 }
コード例 #15
0
ファイル: UserController.php プロジェクト: jerrylsxu/yiifcms
 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;
         }
     }
 }
コード例 #16
0
 public function init()
 {
     parent::init();
     $this->_recom_type = ModelType::model()->findAll();
 }
コード例 #17
0
ファイル: base.php プロジェクト: hwsyy/php-backend-server
<?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'));
コード例 #18
0
 public function init()
 {
     parent::init();
     $this->backup = ROOT_PATH . '/protected/data/backup';
 }
コード例 #19
0
ファイル: CustomerController.php プロジェクト: uxff/myyiicms
 public function init()
 {
     parent::init();
 }
コード例 #20
0
 public function init()
 {
     //菜单
     parent::init();
     $this->_menu = Menu::model()->findAll();
 }