Skip to content

Instantly share code, notes, and snippets.

@freyandhy
Created February 19, 2017 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freyandhy/8ea8211da237ca0beec9d506b76cd4a6 to your computer and use it in GitHub Desktop.
Save freyandhy/8ea8211da237ca0beec9d506b76cd4a6 to your computer and use it in GitHub Desktop.
<?php
$app->get('/', function($request, $response) {
return $this->view->render($response, 'home.twig');
});
$app->get('/hello/{name}', function($request, $response, $args) {
return $this->view->render($response, 'hello.twig', array('name' => $args['name']));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment