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 | 251 | 2 weeks ago | ||
| 5 | 317 | 3 weeks ago | ||
| 1 | 310 | 4 weeks ago | ||
| 1 | 348 | 1 month ago | ||
| 4 | 474 | 2 months ago |