Posted By

athome on 10/04/11


Tagged

symfony


Versions (?)

Symfony 2 Template Cheatsheet


 / Published in: Smarty
 

  1. <!-- generate relative url -->
  2. <a href="{{ path('blog_show', { 'slug': 'my-blog-post' }) }}">
  3. Read this blog post.
  4. </a>
  5.  
  6. <!-- generate absolute url -->
  7. <a href="{{ url('blog_show', { 'slug': 'my-blog-post' }) }}">
  8. Read this blog post.
  9. </a>

Report this snippet  

You need to login to post a comment.