我不知道为什么我的代码执行停止在$this->load->model('recommendations')。我的模型类名和文件名是相同的。
现在页面打印hola1,但是它没有打印hola2,当我在try catch block中使用它时,仍然什么也没有发生,结果也是一样的。
echo "hola1";
echo $this->load->model('recommendations');
echo "hola2";编辑
在我的log_threshold文件中将5设置为5之后。我得到了以下日志。
DEBUG - 2013-11-20 04:39:26 --> Config Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Hooks Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Utf8 Class Initialized
DEBUG - 2013-11-20 04:39:26 --> UTF-8 Support Enabled
DEBUG - 2013-11-20 04:39:26 --> URI Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Router Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Output Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Security Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Input Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Global POST and COOKIE data sanitized
DEBUG - 2013-11-20 04:39:26 --> Language Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Loader Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Database Driver Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Controller Class Initialized
DEBUG - 2013-11-20 04:39:26 --> Model Class Initialized发布于 2015-02-26 16:28:54
有点晚了,但也许有人也会有同样的问题。
在我的例子中,问题是在我的模型中调用$this->db->select()之后,我忘记了放一个分号。所以也许你只需要检查你的代码语法。
https://stackoverflow.com/questions/20091780
复制相似问题