Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | namespace PSPA\TransportBundle\Controller; |
---|
4 | |
---|
5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
---|
6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
---|
7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
---|
8 | use PSPA\TransportBundle\Entity\Transport; |
---|
9 | |
---|
10 | class 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.