Created
February 19, 2017 15:40
-
-
Save freyandhy/8ea8211da237ca0beec9d506b76cd4a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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