public static function Run() { self::$url = isset($_GET['url']) ? trim(stripslashes($_GET['url'])) : ''; if (self::absolute_address() === false) { $rout = Rout::init(); self::$controller = $rout['controller']; self::$method = $rout['method']; self::$params = $rout['params']; } $controller = new self::$controller(); if (method_exists($controller, self::$method)) { self::checker($controller); if (!empty(self::$params)) { call_user_func_array(array($controller, self::$method), self::$params); } else { $controller->{self::$method}(); } } }