Display uploaded images in frontend and backend

Hello. Where I have to upload images from the form to get access to it from both frontend and backend. And what code to display should I use? Please, provide examples. I am new in yii

If you are using advanced template, you can put a repository folder under /common/web/<repository_folder> or in document root, at same level of /backend, /frontend and /common. I prefer this second solution.

OK. How to display them?

Simply get /common/web/images/image_to_display.jpg or /repository/images/image_to_display.jpg

Solved by adding frontend url to params