function statusAction() { $this->_helper->viewRenderer->setNoRender(true); $this->_helper->layout->disableLayout(); $urlReferer = $_SERVER['HTTP_REFERER']; $status = $this->_getParam('st') ? $this->_getParam('st') : ''; $id = $this->_getParam('id') ? $this->_getParam('id') : ''; $modelComment = new App_Model_Db_Table_Comment(); $row = $modelComment->find($id)->current(); if ($status == 0) { $row->published = 0; } else { $row->published = 99; } $row->save(); $sessHistory = new Zend_Session_Namespace('BROWSER_HISTORY'); $sessHistory->urlReferer = $urlReferer; $this->_redirect($sessHistory->urlReferer); }