Create a link with an anchor with Twig path function in Symfony 2
As of Symfony 3.2 you can use the _fragment
option:
<a href="{{ path('homepage', {'_fragment': 'home'}) }}">Home</a>
Check out the feature introduction on the Symfony blog.
As of Symfony 3.2 you can use the _fragment
option:
<a href="{{ path('homepage', {'_fragment': 'home'}) }}">Home</a>
Check out the feature introduction on the Symfony blog.