Yii2 advance issues with image url

I installed advance template. I have upload folder with images in backend(backend/web/upload). I want from frontend access image in backend. I tried but always return "Failed to load resource: the server responded with a status of 404 (Not Found)".

This is my code in frontend(frontend/view/site/index):

<img src="<?php echo Url::to(’@backend/web/uploads/img.jpg’);?>">

Thanks

@backend is directory path, not URL.

Can you explain me how to access images?

at file common/config/params-local.php




<?php

$root='http://web.com/';


Yii::setAlias('@test',$root.'backend/web/uploads/');


return [

];

frontend

<img src="<?php echo Url::to(’@test/img.jpg’);?>">

Thanks :)