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
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 |
|---|---|---|---|---|
| 3 | 193 | 2 weeks ago | ||
| 0 | 111 | 2 weeks ago | ||
| 1 | 206 | 3 weeks ago | ||
| 1 | 324 | 3 weeks ago | ||
| 6 | 1523 | 3 weeks ago |