Commit b70e13213efe4a70a6a2b97d92b663530035125a
1 parent
84f4663d
30.06.16 event images
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
common/models/Event.php
@@ -99,4 +99,8 @@ class Event extends \yii\db\ActiveRecord | @@ -99,4 +99,8 @@ class Event extends \yii\db\ActiveRecord | ||
99 | 'end_at' => Yii::t('app', 'end_at'), | 99 | 'end_at' => Yii::t('app', 'end_at'), |
100 | ]; | 100 | ]; |
101 | } | 101 | } |
102 | + | ||
103 | + public function getImageUrl() { | ||
104 | + return empty($this->image) ? null : '/storage/slider/'. $this->image; | ||
105 | + } | ||
102 | } | 106 | } |