Jump to content

call a method in a cotntroller


Recommended Posts

hello, i would create a simple form that uploads a file .
I must create a module? for each action in prestashop i must create a module or is possible to call a method in a controller like in the MVC pattern?
How i can call an action in a controller in the prestashop's philosophy?
Or controllers are called controllers but are another thing in prestashop?
The question at the end is this: how  simply create a form with a input file type and load the file in a controller with controller's logic?
Thanks.

Link to comment
Share on other sites

You can either create a module (you can look at any of the existing Prestashop modules as an example), or, you can create a new controller, you can see an example for it in the contact form controller, which is used for the Contact page.

very thanks.

Link to comment
Share on other sites

×
×
  • Create New...