# HG changeset patch # User ymh # Date 1319745174 -7200 # Node ID b91e0b89dccdcccd581b914258e69fc265aafef2 # Parent 1e0db016717d6ceccf293c3ca4ed933ffa0a0b86# Parent a16b5806e3f0760f697e87b574aac061fed9d245 merge branch diff -r 1e0db016717d -r b91e0b89dccd src/Company/BaseBundle/Controller/IndexController.php --- a/src/Company/BaseBundle/Controller/IndexController.php Thu Oct 27 21:24:29 2011 +0200 +++ b/src/Company/BaseBundle/Controller/IndexController.php Thu Oct 27 21:52:54 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 1e0db016717d -r b91e0b89dccd src/Company/BaseBundle/Resources/config/routing.yml --- a/src/Company/BaseBundle/Resources/config/routing.yml Thu Oct 27 21:24:29 2011 +0200 +++ b/src/Company/BaseBundle/Resources/config/routing.yml Thu Oct 27 21:52:54 2011 +0200 @@ -8,7 +8,7 @@ company_other: pattern: /other defaults: { _controller: CompanyBaseBundle:Index:other } -doctag: +document_with_tags: pattern: /doctag/{idDoc} defaults: { _controller: CompanyBaseBundle:Index:documentWithTag } all_tags: diff -r 1e0db016717d -r b91e0b89dccd src/Company/BaseBundle/Resources/views/Index/all_documents.html.twig --- a/src/Company/BaseBundle/Resources/views/Index/all_documents.html.twig Thu Oct 27 21:24:29 2011 +0200 +++ b/src/Company/BaseBundle/Resources/views/Index/all_documents.html.twig Thu Oct 27 21:52:54 2011 +0200 @@ -7,7 +7,7 @@ {% for doc in documents %} - + {% endfor %}
IDTITLEDESClien
{{ doc.id }}{{ doc.title }}{{ doc.description }}voir les tags
{{ doc.id }}{{ doc.title }}{{ doc.description }}voir les tags

Add another document

diff -r 1e0db016717d -r b91e0b89dccd src/Company/BaseBundle/Resources/views/Index/other_page.html.twig --- a/src/Company/BaseBundle/Resources/views/Index/other_page.html.twig Thu Oct 27 21:24:29 2011 +0200 +++ b/src/Company/BaseBundle/Resources/views/Index/other_page.html.twig Thu Oct 27 21:52:54 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 %}
{% endblock %} \ No newline at end of file diff -r 1e0db016717d -r b91e0b89dccd src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig --- a/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Thu Oct 27 21:24:29 2011 +0200 +++ b/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Thu Oct 27 21:52:54 2011 +0200 @@ -22,7 +22,7 @@

Description
{{doc.description}}

-

 <  -  > 

+

 <  -  > 

{% render "WikiTagBundle:WikiTag:documentTags" with {'id_doc': doc.id} %} {#