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


PHP CommonController::_initialize方法代码示例

本文整理汇总了PHP中CommonController::_initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonController::_initialize方法的具体用法?PHP CommonController::_initialize怎么用?PHP CommonController::_initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommonController的用法示例。


在下文中一共展示了CommonController::_initialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _initialize

 public function _initialize()
 {
     $this->cateChildList(0, $nb);
     //从父级=0开始递归
     $this->assign('list', $this->cateListAll);
     parent::_initialize();
 }
开发者ID:Willshon,项目名称:OLCS,代码行数:7,代码来源:CateController.class.php

示例2: M

 function _initialize()
 {
     parent::_initialize();
     $cate = M('AnswerCategory')->where(array('status' => 1, 'pid' => 0))->select();
     $this->jsonUtils = new \Org\Util\JsonUtils();
     $this->assign('cate', $cate);
 }
开发者ID:sayi21cn,项目名称:CarService-ServerSide,代码行数:7,代码来源:AnswerController.class.php

示例3:

 function _initialize()
 {
     parent::_initialize();
     $config_path = 'Public/ueditor/config.json';
     $this->path = __ROOT__ . '/Uploads/';
     $this->CONFIG = json_decode(preg_replace("/\\/\\*[\\s\\S]+?\\*\\//", "", file_get_contents($config_path)), true);
 }
开发者ID:jiangyuwei-github,项目名称:uteach,代码行数:7,代码来源:UeditorController.class.php

示例4: M

 function _initialize()
 {
     parent::_initialize();
     $model = M('city');
     $province = $model->where('pid=0 and status=>1')->getField('id,name');
     $this->assign("province", $province);
 }
开发者ID:sayi21cn,项目名称:CarService-ServerSide,代码行数:7,代码来源:CityController.class.php

示例5: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->opname = "基本规定";
     $this->dbname = 'provsionspublish';
     $this->selname = 'uv_getprovsionspublish';
     // gie ni ka s fghrghfghhf
 }
开发者ID:gaoge00,项目名称:sii,代码行数:8,代码来源:ProvsionspublishController.class.php

示例6: _initialize

 public function _initialize()
 {
     parent::_initialize();
     if ($this->memberID <= 0 || empty($this->member_Info)) {
         if (IS_AJAX) {
             $this->error('Login required');
         } else {
             $this->redirect($this->referer ? $this->referer : 'Admin/login');
         }
     }
 }
开发者ID:anshidai,项目名称:m.bagsloves,代码行数:11,代码来源:MemberController.class.php

示例7: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->StudentModel = D('Student');
     $this->PostSubscribeModel = D('PostSubscribe');
     $this->EducationModel = D('Education');
     $this->PracticeModel = D('Practice');
     $this->PrizeExperienceModel = D('PrizeExperience');
     $this->ActivityExperienceModel = D('ActivityExperience');
     $this->StudentCertificateModel = D('StudentCertificate');
     $this->JobExperienceModel = D('JobExperience');
     $this->EnStudentController = A('EnStudent');
     $this->ResumeModel = D('Resume');
 }
开发者ID:cy520win,项目名称:yunchao,代码行数:14,代码来源:ResumeController.class.php

示例8: _initialize

 /**
  * 初始化
  * @return
  */
 public function _initialize()
 {
     parent::_initialize();
     // 开启令牌
     if (ACTION_NAME == 'index') {
         C('TOKEN_ON', true);
     }
     // 需要登录才能访问的action
     $filterLogin = array('logout');
     if (in_array(ACTION_NAME, $filterLogin)) {
         $this->filterLogin();
     }
     // 登录后不可访问的action
     $filterAction = array('index', 'login');
     if (in_array(ACTION_NAME, $filterAction) && $this->hasLogin()) {
         return $this->redirect('Index/index');
     }
 }
开发者ID:def1984,项目名称:genedealer,代码行数:22,代码来源:PublicController.class.php

示例9: _initialize

 /**
  * @Author: 段涛
  * @检测是否有权限操作
  * @function name _initialize
  */
 public function _initialize()
 {
     parent::_initialize();
     checkPower('8');
     checkPower('29');
 }
开发者ID:anLl,项目名称:ybirds,代码行数:11,代码来源:StudentController.class.php

示例10: _initialize

 public function _initialize()
 {
     parent::_initialize('LocalComment');
 }
开发者ID:Willshon,项目名称:OLCS,代码行数:4,代码来源:CommentsController.class.php

示例11: _initialize

 /**
  * 执行过滤
  * @return
  */
 public function _initialize()
 {
     parent::_initialize();
     $this->ensureExistContoller();
 }
开发者ID:def1984,项目名称:genedealer,代码行数:9,代码来源:EmptyController.class.php

示例12: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->ctgModel = M('ctg_data');
     $this->sqModel = M('sq_data');
 }
开发者ID:anLl,项目名称:ybirds,代码行数:6,代码来源:IndexController.class.php

示例13: _initialize

 /**
  * 初始化数据模型
  * @author Mr.Cong <i@cong5.net>
  */
 public function _initialize()
 {
     parent::_initialize();
     $this->model = D('Attribute');
 }
开发者ID:Cong5,项目名称:persimmon-v2,代码行数:9,代码来源:AttributeController.class.php

示例14: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->model = D('Menu', 'Service');
 }
开发者ID:Orchild,项目名称:mt,代码行数:5,代码来源:IndexController.class.php

示例15: _initialize

 public function _initialize()
 {
     parent::_initialize();
 }
开发者ID:cy520win,项目名称:yunchao,代码行数:4,代码来源:InstituteController.class.php


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