public function masterstatusAction() { $status_id = (int) $this->params()->fromRoute('id', 0); $status = (int) $this->params()->fromRoute('status', 0); if ($status == 1) { $data = array('id' => $status_id, 'status' => '0'); } else { $data = array('id' => $status_id, 'status' => '1'); } //print_r($data); $TagModel = new Slider(); $TagModel->exchangeArray($data); $this->getSliderTable()->changeStatus($TagModel); $this->redirect()->toUrl(WEBPATH . '/tags/masterindex'); // die; // if ($status_id == 0) { // return $this->redirect ()->toRoute ( 'Slider' ); // } }