本文整理匯總了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);
}