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()'); $lyluanchinhtriModel = new Front_Model_LyLuanChinhTri(); $lyluanchinhtriModel->update(array('llct_status' => $type, 'llct_date_modified' => $current_time), 'llct_id=' . $id); $this->_redirect('hethong/lyluanchinhtri/index/page/' . $this->_page); }