Automatic Verification of Thinkphp

Source: Internet
Author: User
The UserModel of the Thinkphp automatic verification problem has been used in the automatic verification of the registry form, so I do not know how to use automatic verification in the login form.
It seems that it can be implemented through custom verification conditions or verification time. but how can this problem be implemented?
For help.


Reply to discussion (solution)

No one knows? Dear God?

The think document clearly shows the document.
The think framework can be said that the documents written by Chinese students are both Chinese and detailed.

$ UserModel-> create ()
Create method! Automatic verification and completion

Because USER tables are frequently accessed on various pages, Class userModel is used for automatic verification in each USER table. However, the manual only provides "verification fields, verification rules, error prompts, [verification conditions, additional rules, verification time]" without the parameters I need.

That is, I use a rule to call Create in Class IndexAction function index (), and use another set of verification rules in Class FormAction function insert.

I want to give up Think.

I want to give up Think.
After two years of Tp writing, I also gave up!

The problem is solved by a teacher.

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.