| @@ 78-84 (lines=7) @@ | ||
| 75 | * |
|
| 76 | * @param string $path |
|
| 77 | */ |
|
| 78 | public static function addPath($path) |
|
| 79 | { |
|
| 80 | $path = str_replace('//', '/', rtrim($path, '/')); |
|
| 81 | if (is_dir($path) && !in_array($path, self::$paths)) { |
|
| 82 | array_unshift(self::$paths, $path); |
|
| 83 | } |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Appends a searchable path to available paths list. |
|
| @@ 91-97 (lines=7) @@ | ||
| 88 | * |
|
| 89 | * @param string $path |
|
| 90 | */ |
|
| 91 | public static function appendPath($path) |
|
| 92 | { |
|
| 93 | $path = str_replace('//', '/', rtrim($path, '/')); |
|
| 94 | if (is_dir($path) && !in_array($path, self::$paths)) { |
|
| 95 | array_push(self::$paths, $path); |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Adds an extension to the template engine |
|