12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- Router::register(array('GET /', 'GET /home'), function()
- {
- var_dump(Bundle::$bundles);
- return View::make('home.index');
- });
- Filter::register('before', function()
- {
-
- });
- Filter::register('after', function()
- {
-
- });
- Filter::register('csrf', function()
- {
- if (Request::forged()) return Response::error('500');
- });
- Filter::register('auth', function()
- {
- if (Auth::guest()) return Redirect::to('login');
- });
|