Administrator
/
baucenter
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
b70e13213efe4a70a6a2b97d92b663530035125a
Authored by
Administrator
2016-06-30 12:47:54 +0300
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
Inline
Side-by-side
common/models/Event.php
Wrap text
Show/Hide comments
View file @
b70e132
...
...
@@ -99,4 +99,8 @@ class Event extends \yii\db\ActiveRecord
99
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
}
...
...