Change route method to static.
This commit is contained in:
parent
100bdfe006
commit
701caae7eb
@ -153,7 +153,7 @@ class View extends Neuron {
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function route(string $path = '/'): string
|
||||
public static function route(string $path = '/'): string
|
||||
{
|
||||
if (defined('SITE_URL') && !empty(SITE_URL))
|
||||
return rtrim(SITE_URL, '/').'/'.ltrim($path, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user