当前位置: 首页>>代码示例>>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;未经允许,请勿转载。