This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
prosody_registration_form/index.php
2013-09-11 15:27:52 +02:00

23 lines
423 B
PHP

<?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();