Change route method to static.

This commit is contained in:
KJ 2024-05-29 13:24:20 -04:00
parent 100bdfe006
commit 701caae7eb

View File

@ -153,7 +153,7 @@ class View extends Neuron {
* *
* @return string * @return string
*/ */
public function route(string $path = '/'): string public static function route(string $path = '/'): string
{ {
if (defined('SITE_URL') && !empty(SITE_URL)) if (defined('SITE_URL') && !empty(SITE_URL))
return rtrim(SITE_URL, '/').'/'.ltrim($path, '/'); return rtrim(SITE_URL, '/').'/'.ltrim($path, '/');