當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sapp_Global::downloadFile方法代碼示例

本文整理匯總了PHP中sapp_Global::downloadFile方法的典型用法代碼示例。如果您正苦於以下問題:PHP sapp_Global::downloadFile方法的具體用法?PHP sapp_Global::downloadFile怎麽用?PHP sapp_Global::downloadFile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在sapp_Global的用法示例。


在下文中一共展示了sapp_Global::downloadFile方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: downloadAction

 public function downloadAction()
 {
     $cand_details_model = new Default_Model_Candidatedetails();
     $result = $cand_details_model->getcandidateData($this->_getParam('id'));
     if (!empty($result['cand_resume'])) {
         $status = array();
         $file = BASE_PATH . '/uploads/resumes/' . $result['cand_resume'];
         $status = sapp_Global::downloadFile($file);
         if (!empty($status['message'])) {
             $this->_helper->FlashMessenger()->setNamespace('success')->addMessage($status['message']);
         }
     }
     $this->_redirect('candidatedetails/index');
 }
開發者ID:uskumar33,項目名稱:DeltaONE,代碼行數:14,代碼來源:RequisitionScheduleController.php

示例2: downloadAction

 public function downloadAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     //echo "aaaa" ;die;
     $expenseFile = $this->_getParam('expense_file', NULL);
     //$expenseFile = 'www.jpg';
     //echo $expenseFile;die;
     if (!empty($expenseFile)) {
         //$file = EXPENSES_FILES_PATH.$expenseFile;
         $file = BASE_PATH . '/uploads/expenses/' . $this->_getParam('expense_file');
         $status = sapp_Global::downloadFile($file);
         //print_r($status);
     }
 }
開發者ID:rajbrt,項目名稱:sentrifugo,代碼行數:15,代碼來源:ExpensesController.php

示例3: downloadAction

 /**
  * 
  */
 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');
 }
開發者ID:uskumar33,項目名稱:DeltaONE,代碼行數:17,代碼來源:RequisitionController.php

示例4: downloadAction

 public function downloadAction()
 {
     $feedback_file = $this->_getParam('feedback_file');
     if (!empty($feedback_file)) {
         $file = BASE_PATH . '/uploads/feedback/' . $feedback_file;
         $status = sapp_Global::downloadFile($file);
         if (!empty($status['message'])) {
             $this->_forward('index');
             $this->_helper->FlashMessenger()->setNamespace('success')->addMessage($status['message']);
         }
     }
     $this->_forward('edit');
 }
開發者ID:lukkyrich,項目名稱:sentrifugo,代碼行數:13,代碼來源:EmpscreeningController.php

示例5: downloadhistoryAction

 /**
  * 
  */
 public function downloadhistoryAction()
 {
     $policies_model = new Default_Model_Policies();
     $result = $policies_model->getPolicyHistoryDocumentFileName($this->_getParam('id'));
     if (!empty($result['documentname'])) {
         $status = array();
         $file = BASE_PATH . '/uploads/policies/' . $result['documentname'];
         $status = sapp_Global::downloadFile($file);
         if (!empty($status['message'])) {
             $this->_helper->FlashMessenger()->setNamespace('success')->addMessage($status['message']);
         }
     }
     $this->_redirect('policies/index');
 }
開發者ID:uskumar33,項目名稱:DeltaONE,代碼行數:17,代碼來源:PoliciesController.php


注:本文中的sapp_Global::downloadFile方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。