This article mainly introduces the solution to the failure of ThinkPHP automatic verification. It has certain reference value. Now I share it with you. Friends in need can refer to it.
Quote ThinkPHP2.0 Development Manual: ThinkPHP Manual type checking is only for database-level verification, so the system also has a built-in automatic verification function of data objects to complete the business rule verification of the model. In most cases, the data objects are created by the $_POST data submitted by the form.
Copy code The code is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
Copy code The code is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Related recommendations:
How to implement asynchronous transmission technology using ThinkAjax built in ThinkPHP
The above is the detailed content of Solution to ThinkPHP automatic verification failure. For more information, please follow other related articles on the PHP Chinese website!