aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Acme/DemoBundle/Controller/WelcomeController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Acme/DemoBundle/Controller/WelcomeController.php')
-rw-r--r--src/Acme/DemoBundle/Controller/WelcomeController.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Acme/DemoBundle/Controller/WelcomeController.php b/src/Acme/DemoBundle/Controller/WelcomeController.php
new file mode 100644
index 00000000..884f95bb
--- /dev/null
+++ b/src/Acme/DemoBundle/Controller/WelcomeController.php
@@ -0,0 +1,19 @@
1<?php
2
3namespace Acme\DemoBundle\Controller;
4
5use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
7class WelcomeController extends Controller
8{
9 public function indexAction()
10 {
11 /*
12 * The action's view can be rendered using render() method
13 * or @Template annotation as demonstrated in DemoController.
14 *
15 */
16
17 return $this->render('AcmeDemoBundle:Welcome:index.html.twig');
18 }
19}