public function editAction()
 {
     $tblCategory = new Donga_Model_Category();
     if ($this->_request->isPost()) {
         $tblCategory->saveItem($this->_arrParams, array('task' => 'admin-edit'));
         $this->_redirect($this->_mainAction);
     } else {
         $this->view->Title = 'Chuyên mục :: Quản lý chuyên mục :: Sửa';
         $this->view->headTitle($this->view->Title, true);
         $this->view->selectBox = $tblCategory->itemInSelectbox($this->_arrParams, array('task' => 'admin-edit'));
         $this->view->item = $tblCategory->getItem($this->_arrParams, array('task' => 'admin-edit'));
     }
 }
 public function editAction()
 {
     $this->view->Title = 'Chuyên mục :: Quản lý bài viết :: Sửa bài viết';
     $this->view->headTitle($this->view->Title, true);
     $tblcategory = new Donga_Model_Category();
     $this->view->slbGroup = $tblcategory->itemInSelectbox();
     $tblItem = new Donga_Model_Item();
     $this->view->item = $tblItem->getItem($this->_arrParams, array('task' => 'admin-edit'));
     if ($this->_request->isPost()) {
         $validator = new Donga_Form_ValidateItem($this->_arrParams);
         if ($validator->isError() == true) {
             $this->view->messageError = $validator->getMessageError();
             $this->view->dataRight = $validator->getData();
         } else {
             $arrParams = $validator->getData(array('upload' => true));
             $tblItem = new Donga_Model_Item();
             $tblItem->saveItem($arrParams, array('task' => 'admin-edit'));
             $this->_redirect($this->_mainAction);
         }
     }
 }