Skip to content

Instantly share code, notes, and snippets.

@romainneutron
Created December 3, 2012 23:34
Show Gist options
  • Save romainneutron/4199071 to your computer and use it in GitHub Desktop.
Save romainneutron/4199071 to your computer and use it in GitHub Desktop.
$app = new Application();
$app->get('/', function(Application $app) {
$app['session']->set('plop', 'pipi'.mt_rand());
return $app['twig']->render('index.html.twig', array());
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment