<?php
declare(strict_types=1);
?>

<h2>Sample View file</h2>

<?php
$route = "{{.Subfolder}}/{{.File}}";
$method = "{{.Method}}";
// \tts\misc::get_url($route, $method);

echo \prj\{{.Root}}\outputs\{{.Subfolder}}\{{.File}}_out::{{.Method}}_show_errors($output['errors']);
?>

<?= $output['main'] ?>

<br/><br/>
<form method="post">
    <label for="fname">First Name: <input type="text" id="fname" name="first_name" size="15" /></label><br/>
    <label for="lname">Last Name: <input type="text" id="lname" name="last_name" size="15" /></label><br/>
    <input type="submit" />
</form>

<br>
<hr>

<?= \prj\{{.Root}}\outputs\{{.Subfolder}}\{{.File}}_out::{{.Method}}_display($output['model']); ?>

<a href="<?= \tts\misc::get_url("app/home", "index") ?>">Back to Main</a>