当前位置: 首页>>代码示例>>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;未经允许,请勿转载。