本文整理匯總了PHP中Backend::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Backend::init方法的具體用法?PHP Backend::init怎麽用?PHP Backend::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Backend
的用法示例。
在下文中一共展示了Backend::init方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
public function init()
{
//欄目
parent::init();
$this->_catalog = Catalog::model()->findAll();
$this->_model_type = ModelType::model()->findAll();
}
示例2: init
public function init()
{
parent::init();
parent::auth();
$this->_db = Yii::app()->db;
$this->_bakupPath = $this->_webRoot . '/protected/data/dbbak/';
}
示例3: init
public function init()
{
parent::init();
parent::auth();
$this->_db = Yii::app()->db;
exit('暫不開啟,後續待開發');
}
示例4: init
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: init
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: init
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: main
function main()
{
$start = microtime(true);
require BACKEND_FOLDER . '/classes/Backend.obj.php';
Backend::init();
Backend::add('start', $start);
Controller::serve();
}
示例8: init
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: init
public function init()
{
parent::init();
//內容模型id
$this->_type = $this->_type_ids['soft'];
//欄目
$this->_catalog = Catalog::getTopCatalog(true, $this->_type);
}
示例10: init
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: init
public function init()
{
parent::init();
//廣告位
$positions = AdPosition::model()->findAll();
foreach ((array) $positions as $pv) {
$this->_adposition[''] = "==請選擇廣告位==";
$this->_adposition[$pv->id] = $pv->position;
}
}
示例12: init
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: init
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: init
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: init
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;
}
}
}