You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurs if the route's function or class method doesn't exist before adding a route. Taht condition generates a fatal error before the jetrouter can throw its own exception:
Fatal error: Uncaught Error: Using $this when not in object context in /var/www/jetrouter/src/RouteParser.php:78
I was calling addRoute like this, but had not yet written the get_dashboard class method into the code.
An error occurs if the route's function or class method doesn't exist before adding a route. Taht condition generates a fatal error before the jetrouter can throw its own exception:
Fatal error: Uncaught Error: Using $this when not in object context in /var/www/jetrouter/src/RouteParser.php:78
I was calling addRoute like this, but had not yet written the get_dashboard class method into the code.
$router->addRoute( 'GET', 'dashboard', 'dashboard_route', __CLASS__ . '::get_dashboard' );
The text was updated successfully, but these errors were encountered: