Jump to content

Edit History

Jean L.

Jean L.


update and precise my request

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_cartegrise. In that module I manage to display text content in backoffice. I then create two pages on front office: formulaire and resultat. this by creating 'controller/front/formulaire.php and resultat.php. these controllers redirect to views/templates/front/formulaire.tpl and resultat.tpl.

So I can see my pages formulaire ans resultat displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire and ./resultat

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form displayed on page formulaire.

Is it also possible to have a dedicated controller to execute or process this form, and then display the results in page resultat.

Thank's per advance.

cg_cartegrise-2.zip

Jean L.

Jean L.


update and precise my request

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_cartegrise. In that module I manage to display text content in backoffice. I then create two pages on front office: formulaire and resultat. this by creating 'controller/front/formulaire.php and resultat.php. these controllers redirect to views/templates/front/formulaire.tpl and resultat.tpl.

So I can see my pages formulaire ans resultat displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire and ./resultat

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form displayed on page formulaire.

Is it also possible to have a controller dedicated to this form process, I will then display the results in page resultat.

Thank's per advance.

cg_cartegrise-2.zip

Jean L.

Jean L.

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_cartegrise. In that module I manage to display text content in backoffice. I then create two pages on front office: formulaire and resultat. this by creating 'controller/front/formulaire.php and resultat.php. these controllers redirect to views/templates/front/formulaire.tpl and resultat.tpl.

So I can see my pages formulaire ans resultat displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire and ./resultat

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form displayed on page formulaire.

Jean L.

Jean L.

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_cartegrise. In that module I manage to display text content in backoffice. I then create two pages on front office: formulaire and resultat. this by creating 'controller/front/formulaire.php and resultat.php. these controllers redirect to views/templates/front/formulaire.tpl and resultat.tpl.

So I can see my pages formulaire ans resultat displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire and ./resultat

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form displayed on page formulaire.

Jean L.

Jean L.

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_cartegrise. In that module I manage to display text content in backoffice. I then create two pages on front office: formulaire and resultat. this by creating 'controller/front/formulaire.php and resultat.php. these controllers redirect to views/templates/front/formulaire.tpl and resultat.tpl.

So I can see my pages formulaire ans resultat displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire and ./resultat

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form displayed on page formulaire.

Jean L.

Jean L.

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_cartegrise. In that module I manage to display text content in backoffice. I then create two pages on front office: formulaire and resultat. this by creating 'controller/front/formulaire.php and resultat.php. these controllers redirect to views/templates/front/formulaire.tpl and resultat.tpl.

So I can see my pages formulaire ans resultat displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire and ./resultat

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form displayed on page formulaire.

Jean L.

Jean L.

Hi there,

I would like to create a simple form on a front office page. I started to create a module, I called it cg_mymodule. I that module I manage to display text content (even form content) in module backoffice. I then create two pages on front office. this by creating 'controller/front/formulaire.php. this controller redirect to views/templates/front/formulaire.tpl.

So I can see my page formulaire displayed in path : http://localhost/prestashop/module/cg_mymodule/formulaire

Ok. Now, how can I use class HelperForm() in front controllercg_cartegrise.zip to get my form.

×
×
  • Create New...