blob: c4a246c8a398a49ca6c8b450ab0a903d0da10299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}
}
?>
|