当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminController::_initialize方法代码示例

本文整理汇总了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("微名片以经关闭");
     }
 }
开发者ID:youwen21,项目名称:ot2,代码行数:7,代码来源:WeimingpianController.class.php

示例2: _initialize

 public function _initialize()
 {
     parent::_initialize();
     if (!parent::checkAdminSession()) {
         exit;
     }
 }
开发者ID:soa4java,项目名称:daily,代码行数:7,代码来源:ShopController.class.php

示例3: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     if (!session('?wechattoken')) {
         $this->error('没有要操作的微信公众号', '', 'IS_AJAX');
     }
 }
开发者ID:youwen21,项目名称:ot2,代码行数:7,代码来源:WechatAjaxController.class.php

示例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);
 }
开发者ID:h136799711,项目名称:201507baoxiang,代码行数:8,代码来源:OrgMemberController.class.php

示例5: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     $this->site_id = session('site_id');
     // 获取当前站点相关信息
     if ($this->site_id) {
         $this->_getSiteInfo($this->site_id);
     }
 }
开发者ID:slpi1,项目名称:onethink_multi_site,代码行数:9,代码来源:ProfileController.class.php

示例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']);
     			}
     		 }*/
 }
开发者ID:youwen21,项目名称:ot2,代码行数:12,代码来源:WechatuserController.class.php

示例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();
 }
开发者ID:h136799711,项目名称:201507banma,代码行数:13,代码来源:WxshopController.class.php

示例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);
 }
开发者ID:h136799711,项目名称:201507baoxiang,代码行数:14,代码来源:DatatreeController.class.php

示例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'));
         }
     }
 }
开发者ID:h136799711,项目名称:baseItboye,代码行数:14,代码来源:MenuController.class.php

示例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);
 }
开发者ID:h136799711,项目名称:201507baoxiang,代码行数:15,代码来源:OrganizationController.class.php

示例11:

 function _initialize()
 {
     parent::_initialize();
     $this->assign('meta_title', '用户组管理');
 }
开发者ID:735579768,项目名称:Ainiku,代码行数:5,代码来源:MembergroupController.class.php

示例12: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->db = M();
 }
开发者ID:jianzi0307,项目名称:RunCMS,代码行数:5,代码来源:LogsController.class.php

示例13: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     $vote_id = I('vote_id', 0);
     $this->assign("vote_id", $vote_id);
 }
开发者ID:netsnail,项目名称:201507guoshu,代码行数:6,代码来源:VoteOptionController.class.php

示例14: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     $this->assignTitle('日志管理');
 }
开发者ID:h136799711,项目名称:201507banma,代码行数:5,代码来源:LogController.class.php

示例15: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     $this->position = C('DATATREE.SHOP_INDEX_ADVERT');
 }
开发者ID:h136799711,项目名称:201507baoxiang,代码行数:5,代码来源:AdvertController.class.php


注:本文中的AdminController::_initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。