PrestaShop / PrestaShop/docs

Docs 1.7: You advise to use FrameworkBundleAdminController but templating part is not updated

Open Beginner friendly
#1,049 0 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

Hi all,

Thank you for your efforts to make the documentation updated.

In https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/, you present the new way to define an admin module controller, using FrameworkBundleAdminController.

In https://devdocs.prestashop.com/1.7/modules/concepts/templating/vuejs/ however, you present an old way to define a template system for an admin module controller, that is based on AdminModuleController instead of a FrameworkBundleAdminController. Results: $this->module->getPathUri() for example is not callable. (Also, you forgot to show how to render the template within a fooAction FrameworkBundleAdminController function, instead of initContent)

Could you please update https://devdocs.prestashop.com/1.7/modules/concepts/templating/vuejs/ or tell me if I misunderstood something?

Thank you.
Best regards,

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

Compare the admin controller guidance at modules/concepts/controllers/admin-controllers/ with the templating page at modules/concepts/templating/vuejs/. Update the Vue.js templating documentation to use FrameworkBundleAdminController, explain rendering from a fooAction function, and correct the getPathUri example; the work is done when the two pages describe the same controller approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, symfony
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.