本文整理汇总了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);
}
示例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);
}
示例3: D
function __construct()
{
parent::__construct();
$this->table = D("Answer_type");
$this->answer = D("Answer");
$this->oss = new LpOss();
}
示例4: __construct
public function __construct()
{
parent::__construct();
//$this->shop = $this->getShop();
$this->group = $this->getUserGroup();
// dump($this->getUserGroup());
}
示例5: D
function __construct()
{
parent::__construct();
$this->db = D('Taxonomy');
$this->moduleDb = D('Module');
$this->dbName = 'taxonomy';
}
示例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);
}
示例7: D
function __construct()
{
parent::__construct();
$this->room_type = D("Room_type");
$this->room = D("Room");
$this->oss = new LpOss();
}
示例8: D
function __construct()
{
parent::__construct();
$this->db = D("Content");
$this->model_db = D("Model");
$this->category_db = D("Category");
}
示例9: D
function __construct()
{
parent::__construct();
$this->db = D("Model");
$this->fieldDb = D("ModelField");
$this->modelTypes = $this->db->getModelTypes();
}
示例10: D
function __construct()
{
parent::__construct();
$this->db = D('Position');
$this->dataModel = D('PositionData');
$this->modelModel = D('Model');
$this->modelTypes = $this->modelModel->getModelTypes();
}
示例11: D
function __construct()
{
parent::__construct();
$this->table = D("Users");
$this->user_info = D("User_info");
$this->beancount = D("Beancount");
$this->sign = D("Sign");
}
示例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();
}
示例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"));
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->_page_location = __APP__ . '?s=Activity/index';
$this->assign("sidebar_active", array("Activity", "index"));
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->dbname = 'Cate';
}