fix bugs upload ảnh nhân viên

This commit is contained in:
2020-11-13 10:10:15 +07:00
parent b030073be7
commit f489ecb7cf
4 changed files with 11 additions and 5 deletions

View File

@@ -67,7 +67,7 @@
<legend>Hình nhân viên</legend>
{$img=$directoryAsset|cat:"/img/user2-160x160.jpg"}
{if $model->image}
{$img="/"|cat:$model->image}
{$img="/"|cat:Yii::$app->params['dataPath']|cat:trim($model->image)}
{/if}
<img src="{$img}" id='staff-img' width="100%" class="img-thumbnail" style="cursor: pointer;">
<div class="hidden">