<?php $dir=Yii::getAlias("@common/web/fileuploads/"); ?>
<img src="<?=$dir. $model->file_id ?>" width="200" height='200' />
please help me how to get image from backend/view .i need to go up the directory from view folder.Thank You!
<?php $dir=Yii::getAlias("@common/web/fileuploads/"); ?>
<img src="<?=$dir. $model->file_id ?>" width="200" height='200' />
please help me how to get image from backend/view .i need to go up the directory from view folder.Thank You!
Use this to get baseUrl of your app.
<?= Html::img(Yii::$app->request->baseUrl.'/../../common/web/fileuploads/'.$model->file_id ,['width' => 200 ,'height' => 200])?>