From d6b0440163109f47d3877237a3a8a3531b6677a7 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Wed, 11 Jul 2018 10:36:34 +0300 Subject: [PATCH] Поменял логику работы виджета Parthenr 1 --- frontend/widgets/views/_parthnerList.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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"); ?>
  • - + image->fileName,true)?>" alt="" class="img-responsive">
  • \ No newline at end of file -- libgit2 0.21.4