Example #1
0
 public static function isAllowedUrl($url)
 {
     include SYS_APPLICATION_PATH . DS . 'config' . DS . 'routes.php';
     $route = new \Router($routes, '/index.php', $url);
     $structure = $route->getCallStructure();
     return self::isAllowed($structure['controller'], $structure['action'], $structure['parms']);
 }