Prestashop - 1.4 Guida Dello Sviluppatore

Pagina di 36
Database schema 
 
You can download the PrestaShop 1.4 SQL schema 
, or 
 (you will need 
 to view it). 
What is a PrestaShop module 
PrestaShop's extensibility revolves around modules, which are small 
programs that make use of PrestaShop's functionality and changes them 
or add to them in order to make PrestaShop easier to use or more 
customized. 
Technical principles behind a module 
A PrestaShop module consists of: 
 
A root folder, named after the module, which will hold all of the 
module's files, and will reside in PrestaShop's 
/modules
 folder. 
 
A main PHP file, named after the module, located in that root folder. 
This PHP file should have the same name as its root folder. 
 
An icon file, named 
logo.gif
, representing this module. 
 
Optional: some 
.tpl
 files, containing the module's theme. 
 
Optional: language files, if the module or its theme have text to 
display (and therefore, that should be translatable). 
 
Optional: in a 
/themes/modules
 folder, a folder with the same name as 
the module, containing 
.tpl
 and language files if necessary. This last 
folder is essential during modifications of existing module, so that 
you can adapt it without having to touch its original files. Notably, it