diff --git a/frontend/widgets/views/_parthnerList.php b/frontend/widgets/views/_parthnerList.php index 19185f4..8c7b0a4 100644 --- a/frontend/widgets/views/_parthnerList.php +++ b/frontend/widgets/views/_parthnerList.php @@ -4,7 +4,7 @@ */ use artbox\core\components\imagemanager\models\ImageManager; - +use yii\helpers\Url; ?> @@ -13,14 +13,16 @@ use artbox\core\components\imagemanager\models\ImageManager; image->fileName)) - ?'/img/'.$parthner->image->fileName:'/img/no-image.png'; + + $filePath=(file_exists(Url::to("@web/img/".$parthner->image->fileName))) + ?Url::to("@web/img/".$parthner->image->fileName): + Url::to("@web/img/no-image.png"); ?>