| @@ 86-94 (lines=9) @@ | ||
| 83 | $this->templateName = $name; |
|
| 84 | } |
|
| 85 | ||
| 86 | public function addCSS($uri) |
|
| 87 | { |
|
| 88 | if(!isset($this->content['css'])) |
|
| 89 | { |
|
| 90 | $this->content['css'] = array($uri); |
|
| 91 | return; |
|
| 92 | } |
|
| 93 | array_push($this->content['css'],$uri); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Add a JavaScript file from its src URI |
|
| @@ 101-109 (lines=9) @@ | ||
| 98 | * |
|
| 99 | * @param string $uri The webpath to the JavaScript file |
|
| 100 | */ |
|
| 101 | public function addJS($uri) |
|
| 102 | { |
|
| 103 | if(!isset($this->content['js'])) |
|
| 104 | { |
|
| 105 | $this->content['js'] = array($uri); |
|
| 106 | return; |
|
| 107 | } |
|
| 108 | array_push($this->content['js'],$uri); |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * Add a JavaScript file from a set of files known to the framework |
|