public function showAction() { $request = $this->getRequest(); $id = $this->_helper->IdConvert->hexToStr($request->getParam('id')); if (intval($id) <= 0) { $this->_helper->messenger()->error("Brak parametru ID"); return $this->_helper->redirector('index', $request->getControllerName()); } $package = $this->_model->getPackage($id); $this->_logicPackage->getPackageDataInfo($package); $this->view->data = $package; $packageStatusModel = new WsPackageStatus(); $statusHistory = $packageStatusModel->getStatusHistory($id); $statusPaginator = new Base_Paginator(new Base_Paginator_Adapter_Array($statusHistory->toArray(), array('RowClass' => 'Row_WsPackageStatus'))); $this->view->status_history = $statusPaginator; $this->view->statusHeaders = array('id_status', 'created_at', 'created_by', 'ghosted_at', 'ghosted_by'); $this->view->packageID = $request->getParam('id'); }