I have my images in /backend/web/uploads. Now I would like to show them in /frontend/views/site/index
So in index view I'm trying to show them like this:
$planet = Planet::find()->all();
foreach($planet AS $pl=> $p){
echo Html::img('/backend/web/'.($p->path));
}
in $p->path - uploads/123.jpg
But this path is not valid, how can I display images from /backend/web/uploads in /frontend/views/site/index ?