Jump to content

[1.7]Display forms in backoffice


Recommended Posts

I'm trying to change to 1.7 from 1.6 and I have some issues that I would like to ask some help with:

I want to display a form in a new menu page in the backoffice, I managed to create a route for this in the routes.yml that belongs to my module but i cannot display a form there.

I was able to display a twig template but my goal is to create the form with a helper class or similar tool that is a part of prestashop.

I tried to use the demomodules from Github but that did not worked so I downloaded one of them and tried to install it but it did not installed and displayed errors.

I have tried to create a form with the dev docs but the most pages are about modifying existing ones so it was a dead end.

In the end I was tried to render my form in the action that is called in the route, this almost working but since it wants to use Configuration variables is run in to undefined index errors, my goals is to work with my modules db table instead of Config data so this does not seems to the solution that I need.

I would like to ask is someone can recommend me example code or a tutorial that actually works.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...