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_ChucVuDoan(); $chucvuModel->update(array('cvdoan_status' => $type, 'cvdoan_date_modified' => $current_time), 'cvdoan_id=' . $id); $this->_redirect('hethong/chucvudoan/index/page/' . $this->_page); }