This is a simple template extending the base template.
+ {% if tag_id %} +You passed the parameter tag_id = {{tag_id}}
+ {% endif %}# HG changeset patch # User cavaliet # Date 1319637693 -7200 # Node ID a16b5806e3f0760f697e87b574aac061fed9d245 # Parent 89a003e5b108754b671518d74dacc167ecd4aae6 Little modification to enable routing from tag list. diff -r 89a003e5b108 -r a16b5806e3f0 src/Company/BaseBundle/Controller/IndexController.php --- a/src/Company/BaseBundle/Controller/IndexController.php Wed Oct 26 15:39:04 2011 +0200 +++ b/src/Company/BaseBundle/Controller/IndexController.php Wed Oct 26 16:01:33 2011 +0200 @@ -19,7 +19,8 @@ public function otherAction() { - return $this->render('CompanyBaseBundle:Index:other_page.html.twig'); + $tag_id = $this->getRequest()->query->get('tag'); + return $this->render('CompanyBaseBundle:Index:other_page.html.twig', array('tag_id' => $tag_id)); } diff -r 89a003e5b108 -r a16b5806e3f0 src/Company/BaseBundle/Resources/views/Index/other_page.html.twig --- a/src/Company/BaseBundle/Resources/views/Index/other_page.html.twig Wed Oct 26 15:39:04 2011 +0200 +++ b/src/Company/BaseBundle/Resources/views/Index/other_page.html.twig Wed Oct 26 16:01:33 2011 +0200 @@ -5,6 +5,9 @@
This is a simple template extending the base template.
+ {% if tag_id %} +You passed the parameter tag_id = {{tag_id}}
+ {% endif %}