コード例 #1
0
 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';
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 function __construct()
 {
     parent::__construct();
     $_SERVER['REQUEST_METHOD'] = 'POST';
 }
コード例 #4
0
 function __construct()
 {
     parent::__construct();
     $this->_user = get_user() or ajax_error('USER_NOT_LOGIN', '登录超时,请重新登录!');
     $this->_checkOtherLogin($this->_user['uid']);
 }
コード例 #5
0
 public function init()
 {
     $this->orderModel = new orderModel($this->doctrineService);
     $this->orderDetailModel = new orderdetailModel($this->doctrineService);
     parent::init();
 }
コード例 #6
0
 function __construct()
 {
     parent::__construct();
     $_SERVER['REQUEST_METHOD'] = 'POST';
     //$this->server = initial();
 }