function __construct() { parent::__construct(); if ($_GET['appid']) { $_SERVER['PHP_AUTH_USER'] = $_GET['appid']; } if ($_GET['appsecret']) { $_SERVER['PHP_AUTH_PW'] = $_GET['appsecret']; } $_SERVER['REQUEST_METHOD'] = 'POST'; }
public function init() { //check api $userApi = Utility::userApi($this->params()->fromQuery('userName'), $this->params()->fromQuery('apiKey')); if ($userApi->getId() == '') { die(-1); } $this->userId = $userApi->getId(); //end check api $this->modelMenu = new menuModel($this->doctrineService); $this->modelCombo = new comboModel($this->doctrineService); $this->catModel = new categoryModel($this->doctrineService); $this->translator = Utility::translate(); parent::init(); }
function __construct() { parent::__construct(); $_SERVER['REQUEST_METHOD'] = 'POST'; }
function __construct() { parent::__construct(); $this->_user = get_user() or ajax_error('USER_NOT_LOGIN', '登录超时,请重新登录!'); $this->_checkOtherLogin($this->_user['uid']); }
public function init() { $this->orderModel = new orderModel($this->doctrineService); $this->orderDetailModel = new orderdetailModel($this->doctrineService); parent::init(); }
function __construct() { parent::__construct(); $_SERVER['REQUEST_METHOD'] = 'POST'; //$this->server = initial(); }