view/anax/v2/dev/session.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Anax\View;

/**
 * A layout rendering views in defined regions.
 */

// Show incoming variables and view helper functions
//echo showEnvironment(get_defined_vars(), get_defined_functions());

$mount = $mount ?? null; // Where are the routes mounted
$session = $di->get("session");



?><h1>Session</h1>

<p>The session contains the following data.</p>

<pre><?= var_dump($session) ?></pre>

<p>
    <a href="<?= url($mount."session/increment") ?>">Add to session and increment<a> |
    <a href="<?= url($mount."session/destroy") ?>">Destroy session<a>
</p>