Пример #1
0
 /**
  * 
  */
 public function downloadAction()
 {
     $requi_details_model = new Default_Model_Requisition();
     $result = $requi_details_model->getRequisitionJDFileName($this->_getParam('id'));
     if (!empty($result['jdfilename'])) {
         $status = array();
         $file = BASE_PATH . '/uploads/jobdescriptions/' . $result['jdfilename'];
         $status = sapp_Global::downloadFile($file);
         if (!empty($status['message'])) {
             $this->_helper->FlashMessenger()->setNamespace('success')->addMessage($status['message']);
         }
     }
     $this->_redirect('requisition/index');
 }