php - twig urlFor function -


when i've tried link anchor this:

<a href="{{ urlfor('posts.show', {'postid': post.id}) }}">{{ post.title }}</a> 

i had fatal error:

class 'twig_simplefunction' not found 

1

but works perfect when remove link in anchor. problem?

the "twig_simplefunction" introduced in version between >1.11 , <=1.15, not in 1.x (as mentioned in documentation). that's wrong information documentation.

please try install version 1.15 example.

this issue reported here.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -