source: PSPA/PSPA/TransportBundle/Controller/DefaultController.php @ 1

Last change on this file since 1 was 1, checked in by arnault, 12 years ago
File size: 479 bytes
Line 
1<?php
2
3namespace PSPA\TransportBundle\Controller;
4
5use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
8use PSPA\TransportBundle\Entity\Transport;
9
10class DefaultController extends Controller
11{
12    /**
13     * @Route("/hello/{name}")
14     * @Template()
15     */
16    public function indexAction($name)
17    {
18        return array('name' => $name);
19    }
20}
Note: See TracBrowser for help on using the repository browser.