本文整理汇总了PHP中CommonController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonController::__construct方法的具体用法?PHP CommonController::__construct怎么用?PHP CommonController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonController
的用法示例。
在下文中一共展示了CommonController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
// 获取参数
$code = I('get.code');
$this->data = unserialize(base64_decode($code));
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->asid = isset($_GET['asid']) ? (int) $_GET['asid'] : 0;
$this->cid = isset($_GET['cid']) ? (int) $_GET['cid'] : 0;
$this->uid = isset($_GET['uid']) ? (int) $_GET['uid'] : 0;
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->mobile = in($_POST['mobile']);
$this->mobile_code = in($_POST['mobile_code']);
$this->sms_code = in($_POST['sms_code']);
}
示例4:
function __construct()
{
parent::__construct();
$this->table = 'franchise_region';
$this->page_view = $this->default;
$this->controllername = 'user/region';
}
示例5: __construct
public function __construct()
{
parent::__construct();
// 获取参数
$code = I('code');
$this->data = unserialize(urlsafe_b64decode($code));
}
示例6: __construct
public function __construct(Authorizer $authorizer)
{
parent::__construct($authorizer);
// $this->beforeFilter('oauth', ['except' => 'tmp']);
// $this->beforeFilter('oauth.checkClient', ['only' => 'store']);
// $this->beforeFilter('validation');
}
示例7: __construct
public function __construct()
{
parent::__construct();
if (ACTION_NAME == 'list') {
$this->index();
}
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->dailyDb = M('daily');
$this->typeDb = M('daily_type');
$this->permissionDb = M('permission');
$this->draftDb = M('draft_daily');
}
示例9: D
function __construct()
{
parent::__construct();
$this->goods = D("Goods");
$this->goods_discount = D("goods_discount");
$this->goods_type = D("goods_type");
$this->goods_face = D("goods_face");
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->assign("sidebar_active", array("Work", "index"));
$this->_page_location = __APP__ . '?s=Work/index';
$this->assign("classlist", $this->_course_class);
$this->assign("typelist", $this->_work_type);
}
示例11: __construct
/**
* [__construct description]
*
*/
public function __construct(Authorizer $authorizer)
{
parent::__construct($authorizer);
$this->beforeFilter('oauth', ['except' => ['functionName', 'test']]);
$this->beforeFilter('validation');
// $this->beforeFilter('@prepare', ['only' => ['reply', 'anonymousReply', 'favour', 'unfavour']]);
$this->afterFilter('disconnect:major', ['only' => ['functionName', 'test']]);
}
示例12: M
function __construct()
{
parent::__construct();
$this->permissionDb = M("permission");
$this->typeDb = M("photo_type");
$this->albumDb = M("photo_album");
$this->photoDb = M("photo");
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->action = ACTION_NAME;
/* 如果是显示页面,对页面进行相应赋值 */
assign_template();
$this->assign('action', $this->action);
}
示例14: __construct
/**
* 构造方法
*/
public function __construct()
{
parent::__construct();
$this->openid = I('get.openid');
$this->title = I('get.title');
$this->msg = I('get.msg');
$this->url = I('get.url');
$this->url = $this->url ? base64_decode(urldecode($this->url)) : '';
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->_course_class = C('USER.course_class');
$this->assign('courseclass', $this->_course_class);
//统计课程学习情况
$usercourselearninfo = D('User')->gcUserCourseLearn($this->userinfo['userid'], $this->_course_class);
$this->assign('usercourselearninfo', $usercourselearninfo);
}