public static function add_path($path, $position = 1) { $paths = self::option('templates_root'); Core_Arrays::put($paths, $path, $position); $paths = array_unique($paths); self::option('templates_root', $paths); return $paths; }
public static function append_assets_path($path, $position = 1) { $paths = self::option('assets'); Core_Arrays::put($paths, $path, $position); $paths = array_unique($paths); self::option('assets', $paths); return $paths; }