Usermodel has been used in automatic validation of registration forms, so I don't know how to use automatic authentication in the login form.
It seems to be possible to implement a custom validation condition or validation time, but how exactly?
Help.
Reply to discussion (solution)
Is it true that no one knows? Are you the great God?
Think document it's very clear to look at the document to
The think framework can be said to be very studious, the Chinese people write their own documents are in English and speak very detailed
$UserModel->create ()
Create Method! Automatic verification, auto-completion, etc.
Because the user table is a table that is frequently accessed on various pages, I use class Usermodel for automatic validation on every user table. But the manual only provides "validation fields, validation rules, error hints, [validation conditions, additional rules, validation time]" without providing the parameters I need.
Is that I call create with a rule in class Indexaction function index (), while the class FormAction function insert () uses a different set of validation rules.
I kind of want to give up think, you feel too high.
I kind of want to give up think, you feel too high.
After writing for 2 years tp, I also gave up!
Problem solved, is to ask a teacher to solve