连续使用装载器出现错误!
本帖最后由 scckfzx 于 2010-2-28 14:59 编辑我在一控制器中如果连续使用装载器装在模型、类库等就会出现错误,但把其他去掉,只加载其中一个却是正确的比如:
$this->load->model('Article_model','article');
$this->article->getArticleById($id);
这个是装载一个文章的模型,如果只含这段代码则能调出数据
//加载编辑器
$fckconfig=array('content');
$this->load->library('fckeditor',$fckconfig,'fckeditor');
$this->fckeditor->Value = '这里是要显示的默认文本';
$this->fckeditor->Width = '700';
$this->fckeditor->Height = '400';
$data['fckeditor'] = $this->fckeditor->CreateHtml();
这个是加载整合后的编辑器,单独使用也没问题
$tree=array();
$tree['classtable']=$this->classname;
$this->load->library('tree',$tree);
$this->tree->setClassArray();
$this->tree->createSelect();
$classSelect='<select name="classid"><option value=0>请选择栏目</option>'.$this->tree->getSelect().'</select>';
$data['classSelect']=$classSelect;
这个是加载无限分类的类,单独使用,也能正确调出分类。
以上只要使用任何单独一个,就没有问题,但只要使用其中两个,就会出现问题,浏览器就提示无法访问的错误!
<b>Fatal error</b>:Call to a member function _assign_libraries() on a non-object in <b>D:\PHPnowBeta\htdocs\58kf\leaphp\libraries\Loader.php</b> on line <b>1035</b><br />
请老大们指导下! fckeditor 这个类库有问题吧?
多贴一些代码吧。 没有其他更多的提示了,奇怪的是,只要使用以上三段代码中的任何一段,均没问题,相应的数据都能出来! 肯定是某个类库写的有问题,没有代码,无从判断。
页:
[1]