diff options
| author | ccwn <tzur@ccwn.org> | 2012-04-21 09:53:23 +0200 |
|---|---|---|
| committer | ccwn <tzur@ccwn.org> | 2012-04-21 09:53:23 +0200 |
| commit | 314328f527e8cae759d496f528a1472d7970c137 (patch) | |
| tree | 39fd79cdc6e8dd4f9cf4b8b678fb69bff9188a47 /protected/components/Html.php | |
| parent | ed8e4f88f2877c7bed09662291711b7165e7455f (diff) | |
Extension "EGMap" hinzugefügt
Wrapper für eigene Map hinzugefügt
Marker-Icons hinzugefügt
Diffstat (limited to 'protected/components/Html.php')
| -rw-r--r-- | protected/components/Html.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/protected/components/Html.php b/protected/components/Html.php new file mode 100644 index 0000000..c4a246c --- /dev/null +++ b/protected/components/Html.php @@ -0,0 +1,23 @@ +<?php +class Html extends CHtml +{ + /** + * Makes the given URL relative to the /image directory + */ + public static function imageUrl($url) { + return Yii::app()->baseUrl.'/images/'.$url; + } + /** + * Makes the given URL relative to the /css directory + */ + public static function cssUrl($url) { + return Yii::app()->baseUrl.'/css/'.$url; + } + /** + * Makes the given URL relative to the /js directory + */ + public static function jsUrl($url) { + return Yii::app()->baseUrl.'/js/'.$url; + } +} +?>
\ No newline at end of file |
