本文整理汇总了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');
}
示例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);
}
}
示例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');
}
示例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');
}
示例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');
}