noiselabs / SmartyBundle

Smarty3 template engine bundle for Symfony
http://smartybundle.readthedocs.io/
GNU Lesser General Public License v3.0
51 stars 36 forks source link

Fix #34 render tag always assumes the passed string is a controller #39

Closed mlabrum closed 10 years ago

mlabrum commented 10 years ago

This should fix issue #34 where the render method doesn't work with URI's.

Note: when using a uri, you pass both attributes and strategy through the first render parameter and when using a controller, you pass the strategy through the second parameter.

{* Using path and passing an option *}
{'route_name'|path|render:['test' => true]}

{* Using a strategy (hinclude) with the render tag using a path *}
{'route_name'|path|render:['test' => true, 'standalone' => true, 'strategy' => 'hinclude']}
vitorbrandao commented 10 years ago

Merged. Thank you @mlabrum!