Answer the question
In order to leave comments, you need to log in
How to access images in Yii2?
I use Yii2 Advanced Template to write the application. It is necessary to store images in the common folder, as they will be used in both backend and frontend. Uploading files to the common folder is no problem. The problem arises when displaying a picture - as I understand it, pictures should be located in the subdirectory backend/web or frontend/web. (From there at least the pictures are displayed). Understanding what I lack in order to properly organize the display of pictures? what could be wrong?
Answer the question
In order to leave comments, you need to log in
the pictures must be in the web directory of one of the applications. IMHO frontend. Or create a separate subdomain for static static.domain.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question