Ejemplo n.º 1
0
 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()');
     $phongbanModel = new Front_Model_Phongban();
     $phongbanModel->update(array('pb_status' => $type, 'pb_date_modified' => $current_time), 'pb_id=' . $id);
     $this->_redirect('hethong/phongban/index/page/' . $this->_page);
 }