當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。