public function editAction() { $this->view->Title = 'Chuyên mục :: Quản lý tài nguyên :: Sửa'; $this->view->headTitle($this->view->Title, true); $tblItem = new Donga_Model_Doc(); $this->view->item = $tblItem->getItem($this->_arrParams, array('task' => 'admin-info')); $this->_arrParams['doc_type'] = $this->_arrParams['id']; $tbl_docDtl = new Donga_Model_DocDetail(); $this->view->doc_dtl = $tbl_docDtl->getListItem($this->_arrParams, array('task' => 'list-item')); $totalItem = $tbl_docDtl->countItem($this->_arrParams, array('task' => 'count-item')); $paginator = new Zendda_Paginator(); $this->view->panigator = $paginator->createPaginator($totalItem, $this->_paginator); if ($this->_request->isPost()) { $tblItem = new Donga_Model_Doc(); $tblItem->saveItem($this->_arrParams, array('task' => 'admin-edit')); $this->_redirect($this->_mainAction); } }