Jump to content

My own module - a few questions


piotr.petrasz

Recommended Posts

Hello,

 

My name is Peter and I am a new Presta developer :) I would like to ask the advanced user about creating module for PrestaSHOP 1.6.

 

I would like to create an advanced search, with my own options. I`ve created a form for my right column, with some fileds (select, input etc) I don`t know how to connect this form with presta database and include there for example category list, attribute list etc. Generally my problem concerns on MVC structure. Where I should put the php and mysql query to include data to form? in which file, catalog? How I should make the connections between files tpl/php... 

 

Please help me :)

 

Thank you in advance. 

 

Peter 

Link to comment
Share on other sites

This tutorial gives you the basics on how the methods, controllers, templates link together. Another doc gives you the basics for  working with the database here:

 

http://doc.prestashop.com/display/PS16/Best+Practices+of+the+Db+Class

 

So, for instance in the controller file within the module, this is where you would place your database commands and output variables for the template to display.

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...