Skip to content

Commit fb9d419

Browse files
committed
Use Symfony's template controller
1 parent 3499463 commit fb9d419

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

app/config/routing.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
app:
22
resource: @AppBundle/Controller/
33
type: annotation
4+
5+
# The FrameworkBundle:Template:template controller can be used when you only
6+
# need to render a template without any variables.
7+
# See http://symfony.com/doc/current/cookbook/templating/render_without_controller.html
8+
homepage:
9+
path: /
10+
defaults:
11+
_controller: FrameworkBundle:Template:template
12+
template: 'default/homepage.html.twig'

src/AppBundle/Controller/DefaultController.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy