|
楼主 |
发表于 2009-4-13 14:03:47
|
显示全部楼层
谢谢各位的答案.
我用了 include_once, 导入想要的controller/testing, 然后new Testing();
但是出现错误:
all to a member function _assign_libraries() on a non-object in D:\projects\gene24\web\doc-root\system\libraries\Loader.php on line 1038.
其中的函数是:
function _ci_assign_to_models()
{
if (count($this->_ci_models) == 0)
{
return;
}
if ($this->_ci_is_instance())
{
$CI =& get_instance();
foreach ($this->_ci_models as $model)
{
$CI->$model->_assign_libraries();
}
}
else
{
foreach ($this->_ci_models as $model)
{
$this->$model->_assign_libraries();
}
}
}
1308行是CI->$model->_assign_libraries();
请问这个问题怎么解决? |
|