Guest User

Untitled

a guest
Mar 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.69 KB | None | 0 0
  1. | File/folder name | Description | Details |
  2. |------------------------|--------------------|---------------|
  3. | name\_of\_the\_mod | Main file. | The main PHP |
  4. | ule.php | | file should |
  5. | | | have the same |
  6. | | | name as the |
  7. | | | module's root |
  8. | | | folder. For |
  9. | | | instance, for |
  10. | | | the BlockCMS |
  11. | | | module: |
  12. | | | |
  13. | | | Folder name: |
  14. | | | /modules/ |
  15. | | | blockcms |
  16. | | | |
  17. | | | Main file |
  18. | | | name: |
  19. | | | /modules/ |
  20. | | | blockcms/ |
  21. | | | blockcms. |
  22. | | | php |
  23. |------------------------|--------------------|---------------|
  24. | config.xml | Cache | If it does |
  25. | | configuration | not exist |
  26. | | file. | yet, this |
  27. | | | file is |
  28. | | | automatica |
  29. | | | lly generated |
  30. | | | by PrestaShop |
  31. | | | when the |
  32. | | | module is |
  33. | | | first |
  34. | | | installed. |
  35. |------------------------|--------------------|---------------|
  36. | logo.gif or logo.jpg | Icon files | PrestaShop |
  37. | (up to v1.4) logo.png | representing this | 1.4: 16\*16 |
  38. | (v1.5|) | module in the back | pixels Gif or |
  39. | | office. | Jpeg file. |
  40. | | | PrestaShop |
  41. | | | 1.5: 32\*32 |
  42. | | | pixels PNG |
  43. | | | file. If your |
  44. | | | module works |
  45. | | | on both |
  46. | | | PrestaShop |
  47. | | | 1.4 and |
  48. | | | PrestaShop |
  49. | | | 1.5|, you |
  50. | | | should have |
  51. | | | both a |
  52. | | | logo.gif AND |
  53. | | | a logo.png |
  54. | | | file. |
  55. |------------------------|--------------------|---------------|
  56. | /views | This folder | |
  57. | | contains the View | |
  58. | | files. | |
  59. |------------------------|--------------------|---------------|
  60. | /views/templates | This folder | If the module |
  61. | | contains your | needs to work |
  62. | | module's template | with |
  63. | | files (.tpl). | PrestaShop |
  64. | | | 1.4, the |
  65. | | | template |
  66. | | | files should |
  67. | | | be placed |
  68. | | | either |
  69. | | | directly at |
  70. | | | at the root |
  71. | | | of the |
  72. | | | module's |
  73. | | | folder, or in |
  74. | | | a /template |
  75. | | | folder at the |
  76. | | | root of the |
  77. | | | module's |
  78. | | | folder. |
  79. |------------------------|--------------------|---------------|
  80. | /views/templates/a | Sub-folder for | |
  81. | dmin | template files | |
  82. | | used by the | |
  83. | | module's | |
  84. | | administration | |
  85. | | controllers. | |
  86. |------------------------|--------------------|---------------|
  87. | /views/templates/f | Sub-folder for | |
  88. | ront | template files | |
  89. | | used by the | |
  90. | | module's front | |
  91. | | office | |
  92. | | controllers. | |
  93. |------------------------|--------------------|---------------|
  94. | /views/templates/h | Sub-folder for | |
  95. | ook | template files | |
  96. | | used by the | |
  97. | | module's hooks. | |
  98. |------------------------|--------------------|---------------|
  99. | /views/css | Sub-folder for CSS | If the module |
  100. | | files used. | needs to work |
  101. | | | with |
  102. | | | PrestaShop |
  103. | | | 1.4, the CSS |
  104. | | | files should |
  105. | | | be placed in |
  106. | | | a /css folder |
  107. | | | at the root |
  108. | | | of the |
  109. | | | module's |
  110. | | | folder. |
  111. |------------------------|--------------------|---------------|
  112. | /views/js | Sub-folder for | If the module |
  113. | | JavaScript files. | needs to work |
  114. | | | with |
  115. | | | PrestaShop |
  116. | | | 1.4, the |
  117. | | | JavaScript |
  118. | | | files should |
  119. | | | be placed in |
  120. | | | a /js folder |
  121. | | | at the root |
  122. | | | of the |
  123. | | | module's |
  124. | | | folder. |
  125. |------------------------|--------------------|---------------|
  126. | /views/img | Sub-folder for | If the module |
  127. | | image files. | needs to work |
  128. | | | with |
  129. | | | PrestaShop |
  130. | | | 1.4, the |
  131. | | | image files |
  132. | | | should be |
  133. | | | placed in a |
  134. | | | /img folder |
  135. | | | at the root |
  136. | | | of the |
  137. | | | module's |
  138. | | | folder. |
  139. |------------------------|--------------------|---------------|
  140. | /controllers | This folder | |
  141. | | contains the | |
  142. | | Controller files. | |
  143. | | You can use the | |
  144. | | same sub-folder | |
  145. | | paths as for the | |
  146. | | View files. For | |
  147. | | instance, | |
  148. | | /modules/bankw | |
  149. | | ire/controller | |
  150. | | s/front/paymen | |
  151. | | t.php . | |
  152. |------------------------|--------------------|---------------|
  153. | /override | Sub-folder for the | This is very |
  154. | | class-overridi | useful when |
  155. | | ng code. | you need to |
  156. | | | change some |
  157. | | | of the |
  158. | | | default |
  159. | | | PrestaShop |
  160. | | | code. Since |
  161. | | | you must not |
  162. | | | do so, you |
  163. | | | can override |
  164. | | | the default |
  165. | | | code. For |
  166. | | | instance, |
  167. | | | /modules/ |
  168. | | | gsitemap/ |
  169. | | | override/ |
  170. | | | classes/S |
  171. | | | hop.php |
  172. | | | extends the |
  173. | | | default |
  174. | | | ShopCore |
  175. | | | class. |
  176. |------------------------|--------------------|---------------|
  177. | /translations | Sub-folder for the | fr.php, |
  178. | | translation files. | en.php, |
  179. | | | es.php, etc. |
  180. |------------------------|--------------------|---------------|
  181. | /themes/\[theme\_na | Sub-folder for | This folder |
  182. | me\]/modules | overriding .tpl | is essential |
  183. | | files and | during |
  184. | | languages files, | modificati |
  185. | | if necessary. | ons of an |
  186. | | | existing |
  187. | | | module, so |
  188. | | | that you can |
  189. | | | adapt it |
  190. | | | without |
  191. | | | having to |
  192. | | | touch its |
  193. | | | original |
  194. | | | files. |
  195. | | | Notably, it |
  196. | | | enables you |
  197. | | | to handle the |
  198. | | | module's |
  199. | | | template |
  200. | | | files in |
  201. | | | various ways, |
  202. | | | depending on |
  203. | | | the current |
  204. | | | theme. |
  205. |------------------------|--------------------|---------------|
  206. | /upgrade | Sub-folder for | When |
  207. | | upgrade files | releasing a |
  208. | | | new version |
  209. | | | of the |
  210. | | | module, the |
  211. | | | older might |
  212. | | | need an |
  213. | | | upgrade of |
  214. | | | its data or |
  215. | | | files. This |
  216. | | | can be done |
  217. | | | using this |
  218. | | | folder. |
  219. |------------------------|--------------------|---------------|
Add Comment
Please, Sign In to add comment