uri(1) ?? ''; // second segment $m = App::$req->method; // request method if ($s == '' || $s == 'login') return self::login(); } public static function login() { echo render('layout', ['title' => 'Login']); } }