Home  >  Article  >  Backend Development  >  初学者问一个CI框架的有关问题

初学者问一个CI框架的有关问题

WBOY
WBOYOriginal
2016-06-13 13:23:43798browse

菜鸟问一个CI框架的问题
一个form,提交给控制器做处理后,通过$this->load->view('view', $data, true);将数据返回给原view,view在接到数据后怎么样更新显示?

是不是不行,不能填true?

------解决方案--------------------
$str = $this->load->view('view', $data, true); // 返回HTML到一个字符串。我觉得对生成静态有帮助,哈哈。

一般就直接 $this->load->view('view', $data);// 这样就可以了。
------解决方案--------------------
ls说很清楚了
http://codeigniter.org.cn/user_guide/general/views.html
------解决方案--------------------
那就ajax,登陆后局部刷新

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn