Nano size PHP 5.3.6+ framework
- PSR-0 Autoloading
- Database (mysql, sqlite)
- RESTful Routing
- Session management (database, memcache, cookies)
app/routes.php
Route::get('/', function() {
return 'Hello world';
});
Route::action('auth', function() {
if(Auth::guest()) return Response::redirect('login');
});
Route::get('/', array('before' => 'auth', 'main' => function() {
return 'Hello world';
}));