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.