Ajoy web framework, yet another php web framework just for fun.
defined('ROOT') or define('ROOT', dirname(__file__) . '/..');
app()->configure(array(
'app root' => ROOT,
));
app()->locals(array(
'title' => 'Ajoy web framework',
));
app()->get('/', funciton ($req, $res) {
$res->render('index', array(
'official_site' => 'https://github.com/shaunlee/ajoy',
));
});
app()->run();
Is it simple enough?