本文整理汇总了PHP中AdminController::_initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::_initialize方法的具体用法?PHP AdminController::_initialize怎么用?PHP AdminController::_initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::_initialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initialize
public function _initialize()
{
parent::_initialize();
if (C('WEIMINGPIAN') == "0") {
$this->error("微名片以经关闭");
}
}
示例2: _initialize
public function _initialize()
{
parent::_initialize();
if (!parent::checkAdminSession()) {
exit;
}
}
示例3: _initialize
protected function _initialize()
{
parent::_initialize();
if (!session('?wechattoken')) {
$this->error('没有要操作的微信公众号', '', 'IS_AJAX');
}
}
示例4: _initialize
protected function _initialize()
{
parent::_initialize();
$this->orgid = I('get.orgid', 0);
$this->orgparent = I('get.orgparent', 0);
$this->assign("orgparent", $this->orgparent);
$this->assign("orgid", $this->orgid);
}
示例5: _initialize
protected function _initialize()
{
parent::_initialize();
$this->site_id = session('site_id');
// 获取当前站点相关信息
if ($this->site_id) {
$this->_getSiteInfo($this->site_id);
}
}
示例6: _initialize
protected function _initialize()
{
parent::_initialize();
/* if(!session('?wechattoken')){
if($res=M('wechat')->where(array('uid'=>UID))->find()){
session('wechattoken',$res['token']);
session('wechatname',$res['wechatname']);
session('wechatid',$res['wechatid']);
session('wechatnick',$res['wechatnick']);
}
}*/
}
示例7: _initialize
protected function _initialize()
{
//TODO: 导致session,修改不启作用,沿用上次,导致一级菜单未能存入session,使得当前激活菜单不正确
//FIXME:考虑,将图片上传放到另外一个类中
//解决uploadify上传session问题
session('[pause]');
$session_id = I('get.session_id', '');
if (!empty($session_id)) {
session_id($session_id);
session('[start]');
}
parent::_initialize();
}
示例8: _initialize
protected function _initialize()
{
parent::_initialize();
$this->parent = I('parent', 0);
$result = apiCall("Admin/Datatree/getInfo", array(array('id' => $this->parent)));
if (!$result['status']) {
$this->error($result['info']);
}
if (is_array($result['info'])) {
$this->preparent = $result['info']['parentid'];
}
$this->assign('parent', $this->parent);
$this->assign('preparent', $this->preparent);
}
示例9: _initialize
protected function _initialize()
{
parent::_initialize();
//
if (I('get.pid', 0) != 0) {
$result = apiCall("Admin/Menu/getInfo", array(array('id' => I('get.pid'))));
if ($result['status']) {
$this->assign('parentMenu', $result['info']);
} else {
LogRecord('INFO:' . $result['info'], '[FILE] ' . __FILE__ . ' [LINE] ' . __LINE__);
$this->error(L('UNKNOWN_ERR'));
}
}
}
示例10: _initialize
protected function _initialize()
{
parent::_initialize();
$this->parent = I('parent', 0);
$result = apiCall("Admin/Organization/getInfo", array(array('id' => $this->parent)));
if (!$result['status']) {
$this->error($result['info']);
}
if (is_array($result['info'])) {
$this->preparent = $result['info']['father'];
}
$this->assign('parent_orgname', $result['info']['orgname']);
$this->assign('parent', $this->parent);
$this->assign('preparent', $this->preparent);
}
示例11:
function _initialize()
{
parent::_initialize();
$this->assign('meta_title', '用户组管理');
}
示例12: _initialize
public function _initialize()
{
parent::_initialize();
$this->db = M();
}
示例13: _initialize
protected function _initialize()
{
parent::_initialize();
$vote_id = I('vote_id', 0);
$this->assign("vote_id", $vote_id);
}
示例14: _initialize
protected function _initialize()
{
parent::_initialize();
$this->assignTitle('日志管理');
}
示例15: _initialize
protected function _initialize()
{
parent::_initialize();
$this->position = C('DATATREE.SHOP_INDEX_ADVERT');
}