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

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

WBOY
Release: 2016-06-13 13:23:43
Original
855 people have browsed it

菜鸟问一个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,登陆后局部刷新

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template