Router
class Router
This class is responsible for routing between views.
Methods
Parses menu_acl.json file to determine menu contents depending on acl of user.
Checks if user has access to a particular section of the site and grants access if that is the case.
Performs redirect operations.
Supports operations for routing. It parses the url to determine which page needs to be rendered. That path is parsed to determine the correct controller and action to use.
Details
at line 53
static array
getMenu(string $menu)
Parses menu_acl.json file to determine menu contents depending on acl of user.
at line 95
static bool
hasAccess(string $controller_name, string $action_name = "index")
Checks if user has access to a particular section of the site and grants access if that is the case.
at line 163
static void
redirect(string $location, array $params = [])
Performs redirect operations.
at line 230
static void
route()
Supports operations for routing. It parses the url to determine which page needs to be rendered. That path is parsed to determine the correct controller and action to use.