N
N
Nikolai Novosad2016-06-12 18:09:16
Yii
Nikolai Novosad, 2016-06-12 18:09:16

Yii2 to specify in frontend the path to the image that is in the backend?

Hello.
I am using advanced template. Pictures are uploaded through the admin panel and they are saved in /backend/web/uploads/images.
Now I need to display images in the frontend. The path to the database is 'uploads/images/photo.jpeg'.
Can't get it out. Please tell me how this can be done.
I use apache + linux + locale.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-06-12
@webinar

here still much depends on your architecture.
If the domain is 1, then it was necessary to save it in the frontend immediately
Or make a symlink

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question