A beginner asks a question about the CI framework.

Source: Internet
Author: User
Cainiao asks a question about a CI framework. after a form is submitted to the controller for processing, it uses $ this-& gt; load-& gt; view ('View', $ data, true); returns the data to the original view. how can I update and display the view after receiving the data? No, cannot it be set to true ?, $ Str = $ this-& gt; Cainiao asked a question about the CI framework
After a form is submitted to the controller for processing, the data is returned to the original view through $ this-> load-> view ('View', $ data, true, how to update the display of view after receiving data?

Is it true?

------ Solution --------------------
$ Str = $ this-> load-> view ('View', $ data, true); // returns HTML to a string. I think it is helpful for generating static data. haha.

Generally, you can directly $ this-> load-> view ('View', $ data.
------ Solution --------------------
Ls is clear.
Http://codeigniter.org.cn/user_guide/general/views.html
------ Solution --------------------
So ajax, partial refresh after login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.