Sapphire Documentation

Sapphire\Router\RouterResource::class

class RouterResource


public static string $Page = "Page";

public static string $Image = "Image";

public static string $Video = "Video";

public static string $Sound = "Sound";

public static string $Stylesheet = "Stylesheet";

public static string $Script = "Script";

public static string $JSON = "JSON";

public static string $StaticFolder = "StaticFolder";


public function GetType(): string - Get type

public function SetType(string $type): void - Set type

public function GetPath(): string - Get path

public function SetPath(string $path): void - Set path

public function GetLocation(): string - Get location

public function SetLocation(string $location): void - Set location

public function Echo(App $app): void - Echo (Outputs) the resource


class PluginPage extends RouterResource

public function __construct(string $path, string $view, string $plugin_name, array $data) - Constructs class


class RouterPage extends RouterResource

public function __construct(string $path, string $view) - Constructs class