Initial commit.
This commit is contained in:
commit
d4eda10198
14 changed files with 10726 additions and 0 deletions
23
index.php
Normal file
23
index.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
$app = new Silex\Application();
|
||||
|
||||
$app['debug'] = true;
|
||||
|
||||
$app->register(new Silex\Provider\TwigServiceProvider(), array(
|
||||
'twig.path' => __DIR__.'/templates',
|
||||
));
|
||||
|
||||
$app->get('/', function () use ($app) {
|
||||
return $app['twig']->render('index.twig', array(
|
||||
));
|
||||
});
|
||||
|
||||
$app->post('/', function () use ($app) {
|
||||
return $app['twig']->render('index.twig', array(
|
||||
));
|
||||
});
|
||||
|
||||
|
||||
$app->run();
|
Reference in a new issue