當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonController::__construct方法代碼示例

本文整理匯總了PHP中Admin\Controller\CommonController::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonController::__construct方法的具體用法?PHP CommonController::__construct怎麽用?PHP CommonController::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Admin\Controller\CommonController的用法示例。


在下文中一共展示了CommonController::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->assign("sidebar_active", array("Course", "index"));
     $this->_page_location = __APP__ . '?s=Course/index';
     $this->assign("classlist", $this->_course_class);
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:7,代碼來源:CourseController.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_page_location = __APP__ . '?s=User/index';
     $this->_course_class = CR('Course')->_course_class;
     $this->assign('courseclass', $this->_course_class);
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:7,代碼來源:UserController.class.php

示例3: D

 function __construct()
 {
     parent::__construct();
     $this->table = D("Answer_type");
     $this->answer = D("Answer");
     $this->oss = new LpOss();
 }
開發者ID:283541486,項目名稱:kaixinwa2.0,代碼行數:7,代碼來源:AnswerTypeController.class.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     //$this->shop = $this->getShop();
     $this->group = $this->getUserGroup();
     //  dump($this->getUserGroup());
 }
開發者ID:quguo,項目名稱:wxpt,代碼行數:7,代碼來源:SystemController.class.php

示例5: D

 function __construct()
 {
     parent::__construct();
     $this->db = D('Taxonomy');
     $this->moduleDb = D('Module');
     $this->dbName = 'taxonomy';
 }
開發者ID:bbing,項目名稱:TP-Admin-V2.0,代碼行數:7,代碼來源:TaxonomyController.class.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->assign("sidebar_active", array("Testing", "index"));
     $this->_page_location = __APP__ . '?s=Testing/index';
     $this->assign("examtype", $this->_exam_type);
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:7,代碼來源:TestingController.class.php

示例7: D

 function __construct()
 {
     parent::__construct();
     $this->room_type = D("Room_type");
     $this->room = D("Room");
     $this->oss = new LpOss();
 }
開發者ID:283541486,項目名稱:kaixinwa2.0,代碼行數:7,代碼來源:RoomController.class.php

示例8: D

 function __construct()
 {
     parent::__construct();
     $this->db = D("Content");
     $this->model_db = D("Model");
     $this->category_db = D("Category");
 }
開發者ID:RocherKong,項目名稱:518ESHOP,代碼行數:7,代碼來源:ContentController.class.php

示例9: D

 function __construct()
 {
     parent::__construct();
     $this->db = D("Model");
     $this->fieldDb = D("ModelField");
     $this->modelTypes = $this->db->getModelTypes();
 }
開發者ID:9618211,項目名稱:TP-Admin-V2.0,代碼行數:7,代碼來源:ModelController.class.php

示例10: D

 function __construct()
 {
     parent::__construct();
     $this->db = D('Position');
     $this->dataModel = D('PositionData');
     $this->modelModel = D('Model');
     $this->modelTypes = $this->modelModel->getModelTypes();
 }
開發者ID:bbing,項目名稱:TP-Admin-V2.0,代碼行數:8,代碼來源:PositionController.class.php

示例11: D

 function __construct()
 {
     parent::__construct();
     $this->table = D("Users");
     $this->user_info = D("User_info");
     $this->beancount = D("Beancount");
     $this->sign = D("Sign");
 }
開發者ID:283541486,項目名稱:kaixinwa2.0,代碼行數:8,代碼來源:UsersController.class.php

示例12: D

 function __construct()
 {
     parent::__construct();
     $this->table = D("Goods");
     $this->goods_type = D("Goods_type");
     $this->goods_face = D("Goods_face");
     $this->oss = new LpOss();
 }
開發者ID:283541486,項目名稱:kaixinwa2.0,代碼行數:8,代碼來源:GoodsController.class.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     if (!$this->managerinfo['super']) {
         $this->pageReturn(1, '賬號沒有管理權限!', __APP__ . '?s=Index/index');
     }
     $this->_page_location = __APP__ . '?s=Manager/index';
     $this->assign("sidebar_active", array("Manager", "index"));
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:9,代碼來源:ManagerController.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_page_location = __APP__ . '?s=Activity/index';
     $this->assign("sidebar_active", array("Activity", "index"));
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:6,代碼來源:ActivityController.class.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->dbname = 'Cate';
 }
開發者ID:mcxzyang,項目名稱:vipclub,代碼行數:5,代碼來源:CateController.class.php


注:本文中的Admin\Controller\CommonController::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。