1234567891011121314151617181920 |
- <?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', [
- 'nav' => $app['nav_builder']->build(),
- ]);
- }
- }
|