0

我的问题是当我加载视图文件时,它直接将其发送到浏览器而不是返回它:

$output=$this->load->view('topic', $data, TRUE); 

我有两个控制器。每个控制器在扩展之前扩展另一个控制器,CI_Controller例如:

topics_admin extends Backend(which extends CI_controller) 

topics extends Frontend (which extends CI_controller)

第一个控制器按预期运行,但第二个控制器有我解释过的问题。2 个前端和后端控制器之间没有重大区别。

我正在使用 CI 2,但我还没有接触过核心课程。

它出什么问题了?

4

1 回答 1

0

I've found it . There was undefined function in the view and it didn't show the error message because the function was in a tag attribute like that :

<a href="<?=member_url()?>/topics">Title</a>
于 2011-03-11T18:03:16.040 回答