What is the difference between the I() method receiving data and the create() method receiving data in ThinkPHP? ?

WBOY
Release: 2023-03-02 12:46:01
Original
991 people have browsed it

What is the difference between the I() method receiving data and the create() method receiving data in ThinkPHP? ?

Reply content:

What is the difference between the I() method receiving data and the create() method receiving data in ThinkPHP? ?

The I() method will automatically filter html entities. The create method needs to manually call the filter method of the model after automatic creation. Create includes automatic creation of data objects, automatic verification, automatic completion, and field mapping

The data received by create will be verified in the model, but if it is received directly using the I function, it will not be possible. This is one of the points

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!