yiisoft/yii2-twig

Error in docs in Template Syntax -> URLs

Aleksey203 opened this issue · 2 comments

What steps will reproduce the problem?

Need to read https://github.com/yiisoft/yii2-twig/blob/master/docs/guide/template-syntax.md
Chapter URLs

What's expected?

<a href="{{ path(['blog/view'], {'alias' : post.alias}) }}">{{ post.title }}</a> <a href="{{ url(['blog/view'], {'alias' : post.alias}) }}">{{ post.title }}</a>
it`s not correct

What do you get instead?

Correct is
<a href="{{ path('blog/view', {'alias' : post.alias}) }}">{{ post.title }}</a> <a href="{{ url('blog/view', {'alias' : post.alias}) }}">{{ post.title }}</a>
without [ ]

Additional info

Q A
Yii vesion 2.0.12
PHP version 5.6.30
Operating system ubuntu 14.04

Which version of yii2-twig do you have?
Should be fixed in 2.1.0, if this is a duplicate: #73

Yes, it should be fixed...