How can tp3 directly access the pictures in the public directory in the address bar?

I save the generated QR code image in the public directory. The frontend request interface requires me to return this image address, but this image address does not exist. 404, is there any way to solve it?

clipboard.png

clipboard.png

Php
May.13,2021

this is an example of TP3.2 's image access.

if you cannot access it, you can print whether the value of _ _ PUBLIC__ points to the public directory

in the program.

generally defines a static path such as "_ _ STATIC__" to the "/ public/static" directory or any directory you need, and then can be used directly on all WEB pages. It's convenient.


just change a subdomain name. As for the lack of access to the domain name of the interface, I still don't understand

Menu