public static function launch() { if (REQUEST::GET("view") != null) { $view = "Nise\\Project\\" . REQUEST::GET("view"); if (class_exists($view)) { $project = new $view(); } } }
private static function is_allowed_in_subview(array $config) { foreach ($config as $key => $value) { if (self::startswith(strtolower($key), "subview:")) { if (CONFIG::has_attribute($value, "name", true) && $value["@attributes"]["name"] == REQUEST::GET("subview")) { self::has_redirect($value, true); self::$has_subview = true; } } } }