| @@ 285-292 (lines=8) @@ | ||
| 282 | * @param $files array |
|
| 283 | * @param $place string |
|
| 284 | */ |
|
| 285 | public function addCSS($files = [], $place = 'append') |
|
| 286 | { |
|
| 287 | if ($place === 'prepend') { |
|
| 288 | $this->queuedCSS = array_merge($files, $this->queuedCSS); |
|
| 289 | } else { |
|
| 290 | $this->queuedCSS = array_merge($this->queuedCSS, $files); |
|
| 291 | } |
|
| 292 | } |
|
| 293 | ||
| 294 | public function addJS($files = [], $place = 'append') |
|
| 295 | { |
|
| @@ 294-301 (lines=8) @@ | ||
| 291 | } |
|
| 292 | } |
|
| 293 | ||
| 294 | public function addJS($files = [], $place = 'append') |
|
| 295 | { |
|
| 296 | if ($place === 'prepend') { |
|
| 297 | $this->queuedJS = array_merge($files, $this->queuedJS); |
|
| 298 | } else { |
|
| 299 | $this->queuedJS = array_merge($this->queuedJS, $files); |
|
| 300 | } |
|
| 301 | } |
|
| 302 | ||
| 303 | /** |
|
| 304 | * Set 404 header, and return 404 view contents |
|