Framework version: thinkphp frame thinkphp 3.2.3
Generate Verification Code
Here is the simplest way to generate a verification code:
$Verify = new \Think\Verify();
$Verify->entry();
1. Verification code call and Verification Code configuration parameters, such as: Code at the controller
2. Call the CAPTCHA code at the template as follows:
3. Under admin/common/function.php: Add the following validation code validation function code validation function in the background shared function file
4. The user entered a verification code passed in to the Controller Verification Codes: verification code
5. Small series of exercises to do a small verification code, a bit simple, practiced hand use of OH ~
The above is the TP verification code call, relatively simple, I hope to have this problem of the students have help, thank you for your support!
2017.11.4? Metronic. Produced by: Raizhong | Loyal sign Blog: zb_blog | qq:392277956.
"Thinkphp Framework Learning" (1)---thinkphp 3.2.3 Verification code verification using tutorial sharing