after updating twig to > than 1.7
code <a href="{{ url('article', { 'articleId':article.id }) }}">
causes:
Twig_Error_Runtime: An exception has been thrown during the compilation of a template ("Catchable Fatal Error: Argument 2 passed to Twig_Environment::addFunction() must implement interface Twig_FunctionInterface, instance of Twig_Filter_Function given
with 1.7 - everything is ok
You have to use path(...)
instead of url(...)
.
Arguments are the same.
I suppose that from 1.7 to > 1.7 this function became obsolete and was substituted with new one
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With