Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
helquisson committed Jul 21, 2015
1 parent 265fc46 commit bb62b09
Show file tree
Hide file tree
Showing 418 changed files with 92,681 additions and 388 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "helquisson/base_silex",
"require": {
"silex/silex": "^1.3",
"twig/twig": "^1.18"
"twig/twig": "^1.18",
"twbs/bootstrap": "^3.3"
},
"authors": [
{
Expand Down
103 changes: 77 additions & 26 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
});*/

$app->get('/', function () use ($app) {
return $app->json(array("Hello World - "));
return $app['twig']->render('home.twig', array());
});

/* exemplo de middleware after */
Expand All @@ -41,7 +41,7 @@
});*/

/* rotas */
$app->get('/users/{name}/{id}', function ($name, $id) use ($app) {
$app->get('/page/{name}/{id}', function ($name, $id) use ($app) {

if (is_null($name) || is_null($id)):
return $app->redirect('/');
Expand Down
Loading

0 comments on commit bb62b09

Please sign in to comment.