/** * Remove package assignment, display confirmation form * * @return array|\Zend\Http\Response array(packageName) or redirect response */ public function removepackageAction() { $params = $this->params(); if ($this->getRequest()->isPost()) { if ($params->fromPost('yes')) { $this->_currentClient->removePackage($params->fromQuery('package')); } return $this->redirectToRoute('client', 'packages', array('id' => $this->_currentClient['Id'])); } else { return array('packageName' => $params->fromQuery('package')); } }