fix bugs upload ảnh nhân viên
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user