public function activateAction() { $id = $this->_getParam('id'); $row = $this->tbl_polling->find($id)->current(); if (!empty($row)) { $this->tbl_polling->update(array('showstatus' => 0), ''); $row->setFromArray(array('showstatus' => 1))->save(); } $this->_helper->redirector('index'); }