- Function to store and get worked good

- Token works great
- Session works great
This commit is contained in:
2017-09-05 10:01:27 +07:00
parent 45dbe24da7
commit c64064321e
5 changed files with 68 additions and 33 deletions
+6
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']);