我正在codeigniter上开发一个票证系统,该系统应该处理postgresql,当我将驱动程序切换到pgsql时,会出现很多错误,如果我切换回mysql,它会正常工作。
这是的错误
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Home::$settings
Filename: libraries/Template.php
Line Number: 21
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: libraries/Template.php
Line Number: 21
这是Templatephp中的第21行
public function loadContent($view,$data=array(),$die=0)
{
$CI =& get_instance();
if(empty($this->layout)) {
$this->set_layout($CI->settings->info->layout);
}
$site = array();
$site['cssincludes'] = $this->cssincludes;
foreach($this->data as $k=>$v) {
$site[$k] = $v;
}
foreach($this->data as $k=>$v) {
$data[$k] = $v;
}
$site['content'] = $CI->load->view($view,$data,true);
if($this->sidebar) {
$site['sidebar'] = $CI->load->view($this->sidebar,$data,true);
}
if($this->page_title) {
$site['page_title'] = $this->page_title;
}
if($this->responsive_sidebar) {
$site['responsive_sidebar'] = $CI->load
->view($this->responsive_sidebar,$data,true);
}
感谢
解决了的查询错误
问候