search

Home  >  Q&A  >  body text

Verification code generated using think-captcha in thinkphp5 is not displayed

The verification code generated by think-captcha in thinkphp5 is not displayed

The generated verification code is displayed as follows

QQ图片20170904160213.png

Baidu said to add line 39 in helper.php under captcha

\think\Route::rule('captcha','index/captcha');

But it still can’t be displayed

Newbie please give me some advice

craziercrazier2643 days ago1986

reply all(1)I'll reply

  • 呆呆熊去哪了

    呆呆熊去哪了2017-09-05 09:09:37

    It may be caused by the BOM header in your entry file. Search php.bom online and execute it in the project root directory, and try again.

    reply
    0
  • Cancelreply