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’);?>">


@backend is directory path, not URL.

Can you explain me how to access images?

at file common/config/params-local.php




return [



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

Thanks :)