Url from path

Hi.

Im having trouble showing an image from my frontend in my backend.

Im using Yii2 Improved Advanced Template, so my structure is as described here:

http://www.yiiframework.com/extension/yii2-improved-advanced-template/

under "Directory structure".

Now, i added a extra dirname in my common/config/bootstrap.php so the frontend alias reads:


Yii::setAlias('frontend', dirname(dirname(dirname(__DIR__))));

This gives me the correct folder when uploading images trough the backend, but when i want to preview the images i get the real server path. I’ve tried Url::To(@frontend)/images/ but it still gives me the server path.

Im using XAMPP on a windows machine. And i get the url C:/path/to/my/project instead of localhost/path/to/my/project.

I’ve googled around, but no results.

Anyone care to tell me where im stepping wrong?

Thanks in advance