PrestaShop / PrestaShop/docs

Document admin modern controller link helpers for Twig

Open
#294 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Scala
Stars
136
Forks
555
Avg merge
4d 14h
Merged PRs (30d)
4

Description

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>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the “Templating with Twig” helpers section linked in the issue and compare it with the linked Symfony templating documentation. Document the appropriate modern-controller link helpers alongside the legacy example, with enough guidance to distinguish route names and parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
symfony
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.