Files
saqel/backend/app/Views/LandingPage.php
T

18 lines
420 B
PHP

<?php
namespace App\Views;
class LandingPage
{
public static function render(): string
{
// The public landing route and PHP homepage share one source.
$page = file_get_contents(dirname(__DIR__, 2) . '/public/landing/index.html');
if ($page === false) {
throw new \RuntimeException('The landing page template could not be loaded.');
}
return $page;
}
}