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