Пример #1
0
		public static function getRoute()
		{
			self::$url = empty($_GET['url']) ? '/' : $_GET['url'];
			Routing::setRoutes();
			if (empty(self::$controller))
				trigger_error('Page Not Found');
			elseif (!method_exists(self::$controller, self::$method)) 
				trigger_error('Invalid Page Index');
			
			Security::check(self::$controller, self::$method);
			return array(self::$controller, self::$method);
		}