Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 364 Bytes

readme.md

File metadata and controls

21 lines (14 loc) · 364 Bytes

Nano

Nano size PHP 5.3.6+ framework

Hello world

app/routes.php

Route::get('/', function() {
	return 'Hello world';
});

Hooks before and after

Route::action('auth', function() {
	if(Auth::guest()) return Response::redirect('login');
});

Route::get('/', array('before' => 'auth', 'main' => function() {
	return 'Hello world';
}));