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