| @@ 373-380 (lines=8) @@ | ||
| 370 | * |
|
| 371 | * @param [type] $filename [description] |
|
| 372 | */ |
|
| 373 | public function addScript($filename) |
|
| 374 | { |
|
| 375 | if (strpos($filename, 'http') === FALSE) { |
|
| 376 | $filename = base_url() . 'assets/js/' . $filename; |
|
| 377 | } |
|
| 378 | ||
| 379 | $this->external_scripts[] = $filename; |
|
| 380 | } |
|
| 381 | ||
| 382 | //-------------------------------------------------------------------- |
|
| 383 | ||
| @@ 387-394 (lines=8) @@ | ||
| 384 | /** |
|
| 385 | * Adds an external stylesheet file to the 'stylesheets' array. |
|
| 386 | */ |
|
| 387 | public function addStyle($filename) |
|
| 388 | { |
|
| 389 | if (strpos($filename, 'http') === FALSE) { |
|
| 390 | $filename = base_url() . 'assets/css/' . $filename; |
|
| 391 | } |
|
| 392 | ||
| 393 | $this->stylesheets[] = $filename; |
|
| 394 | } |
|
| 395 | ||
| 396 | //-------------------------------------------------------------------- |
|
| 397 | } |
|