这是我的控制器:
$html = $this->load->view('print_po', $po, TRUE);
$this->load->library('pdf');
$pdf = $this->pdf->load();
现在我已经尝试并评论每一行,显示错误的是:
$pdf = $this->pdf->load();
这是我在application/libraries中的库类:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class pdf {
function pdf()
{
$CI = & get_instance();
log_message('Debug', 'mPDF class is loaded.');
}
function load($param=NULL)
{
include_once APPPATH.'/third_party/mpdf/mpdf.php';
if ($params == NULL)
{
$param = '"en-GB-x","A4","","",10,10,10,10,6,3';
}
return new mPDF($param);
}
}
只有在将代码从一台服务器移动到另一台服务器后才会出现错误(错误发生在 CentOS 服务器上,我敢打赌它区分大小写)。我的问题是:我应该修改什么以便 codeIgniter 正常加载 Exceptions.php?