Skip to content

Commit

Permalink
Added docs how to render the path
Browse files Browse the repository at this point in the history
  • Loading branch information
pulse00 committed Mar 6, 2012
1 parent 40d5cbc commit bdd2b25
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Resources/doc/reference/helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ Render the media:
'class' => 'myclass'
) ?>
Render the path:

.. code-block:: php
<?php echo $view['sonata_media']->path($media, 'small') ?>
Twig usage
----------

Expand All @@ -47,3 +53,9 @@ Render the media:
{% media media, 'small' %}
{% media media, 'small' %}
Render the path:

.. code-block:: jinja
{% path media, 'small' %}

0 comments on commit bdd2b25

Please sign in to comment.