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(); }
public function init() { $this->orderModel = new orderModel($this->doctrineService); $this->orderDetailModel = new orderdetailModel($this->doctrineService); parent::init(); }