public function deleteDocDtlAction()
 {
     if ($this->_request->isPost()) {
         $tblItem = new Donga_Model_DocDetail();
         $tblItem->deleteItem($this->_arrParams, array('task' => 'admin-delete'));
         $this->_redirect($this->_currentController . '/ajax-image/album_id/' . $this->_arrParams['album_id']);
         $this->_helper->layout->disableLayout();
         $this->_helper->viewRenderer->setNoRender();
     }
 }
 public function downloadAction()
 {
     if (isset($this->_arrParam['file_name']) && $this->_arrParam['file_name'] != "") {
         $pathFile = FILES_PATH . '/resource/' . $this->_arrParam['file_name'];
         $name = basename($pathFile);
         $fileType = filetype($pathFile);
         $this->getResponse()->clearAllHeaders()->setHeader('Content-Type', 'application/octet-stream', true)->setHeader('Content-Disposition', 'attachment; filename="' . $name . '"', true)->setHeader('Content-Length', filesize($pathFile), true)->setHeader('Cache-control', 'private', true);
         readfile($pathFile);
         $this->getResponse()->sendResponse();
     } else {
         $this->_redirect($this->_actionMain);
     }
     if (isset($this->_arrParam['id'])) {
         $tbl_doc = new Donga_Model_DocDetail();
         $tbl_doc->hintUpdate($this->_arrParam['id']);
     }
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender();
 }