docs icon indicating copy to clipboard operation
docs copied to clipboard

Document admin modern controller link helpers for Twig

Open TechhDan opened this issue 6 years ago • 2 comments

Under the "Templating with Twig" part of the documentation there's mention of link helpers for Legacy Controllers. For generating links to modern controllers should we use the methods mentioned in the Symfony documentation?

<!-- Legacy link helper -->
{{ getAdminLink('LegacyControllerName') }}
<!-- Symfony link helpers -->
{{ url('registered_route_name') }
{{ path('registered_route_name', {'param': 'value'}) }}</p>

TechhDan avatar Jun 23 '19 03:06 TechhDan

Reading through Symfony's documentation has answered a lot of these questions.

TechhDan avatar Jul 07 '19 15:07 TechhDan

Reading through Symfony's documentation has answered a lot of these questions.

That's nice 😄but I think your issue was relevant, we can at least provide the link to SF documentation 😉 (so I reopen it in order not to forget it)

matks avatar Jul 07 '19 19:07 matks