在Codeigniter控制器中包含库中的错误

时间:2014-03-14 07:46:14

标签: codeigniter mpdf

当我在外部服务器上运行我的应用程序时,我感到很恐怖,
Message: Login::include_once(application/third_party/mpdf/mpdf.php) [function.Login-include-once]: failed to open stream: No such file or directory
同一个应用程序在本地服务器上运行完美。任何人都可以建议它可能有什么问题。我的控制器功能,

function pdfapp()   //for test  run individually
{
$this->load->model('Registration_model');
$appno='4/SCSELB/2013/KL01';
$data['table']  = $this->Registration_model->getall_app($appno);
$data['own_land']   = $this->Registration_model->get_ownland($appno);
$data['loan_data']  = $this->Registration_model->getloan_data($appno);
$apppdf='4_SCSELB_2013_KL01';
$data['apppdf']=$apppdf;
$pdfFilePath = FCPATH."reports/application/$apppdf.pdf";
if (file_exists($pdfFilePath) == FALSE)
{
    ini_set('memory_limit','32M'); 
    $html = $this->load->view('pdf_report2', $data, true);  
    include_once APPPATH.'third_party/mpdf/mpdf.php';
    $mpdf=new mPDF('c'); 
    $mpdf->SetFooter('           copyright@ KSDC'.'|{PAGENO}|'.'Applied on '.date('d-M-Y H.i.s')); 
    $mpdf->WriteHTML($html);
    $mpdf->Output($pdfFilePath, 'F'); 
}                   
 $this->load->view('pdf_report2',$data);

}

1 个答案:

答案 0 :(得分:0)

您收到的错误是文件不存在,您是否在调试此行?

     APPPATH.'third_party/mpdf/mpdf.php'; ?

如果var_dump它会得到什么样的路径?