function changestatusAction() { $this->_helper->layout()->disableLayout(); $type = $this->_request->getParam('status', 1); $id = $this->_request->getParam('id', 0); if ($type > 0) { $type = 1; } else { $type = 0; } $current_time = new Zend_Db_Expr('NOW()'); $chucvuModel = new Front_Model_Chucvu(); $chucvuModel->update(array('cv_status' => $type, 'cv_date_modified' => $current_time), 'cv_id=' . $id); $this->_redirect('hethong/chucvu/index/page/' . $this->_page); }