- Function to store and get worked good

- Token works great
- Session works great
This commit is contained in:
2017-09-05 09:53:52 +07:00
parent 45dbe24da7
commit c64064321e
5 changed files with 70 additions and 35 deletions

View File

@@ -1,7 +1,13 @@
<?php
session_start();
// Autoload
require_once dirname(__DIR__).'/vendor/autoload.php';
if (Core\Session::exists('info')) {
echo Core\Session::flash('info');
echo "<br>";
}
$router = new Core\Router();
$router->add('', ['controller' => 'posts', 'action' => 'index']);