123456789101112131415161718 |
- <?php
- namespace demo\Controllers;
- use Silex\Application;
- /**
- * Class HomeController demonstrates use of Twig
- *
- * @package demo\Controllers
- */
- class HomeController {
- public function home(Application $app) {
- return $app['twig']->render('index.html.twig', []);
- }
- }
|