Hello,
I would like to get the $1 $2 regex values of my route directly into my twig template. Is this possible ?
i.e :
TWIG
// routes
/annonce-.+-(\d+) : /annonce
// annonce.html.twig
{% do getInfos( my_digit_value) %}
Thx
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Hello,
I would like to get the $1 $2 regex values of my route directly into my twig template. Is this possible ?
i.e :
// routes
/annonce-.+-(\d+) : /annonce
// annonce.html.twig
{% do getInfos( my_digit_value) %}
Thx
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 198 | 2 months ago | ||
| 3 | 94 | 2 months ago | ||
| 11 | 456 | 3 months ago | ||
| 0 | 48 | 3 months ago | ||
| 5 | 128 | 3 months ago |