本文整理汇总了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;
}
}
}