Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • HelperForm: used to generate an edition form for an object of type ObjectModel. Example: editing the client's profile.
  • HelperOptions: used to generate a configuration form, the values of which are stored in the configuration table. Example: the "Preferences" page.
  • HelperListHelperList2: used to generate a table of elements. The elements can belong to ObjectModel-type objects, but they do not have to. Example: client list, order status list.
  • HelperView: used to generate a View page. Example: the page that is displayed when the client lists her orders, her carts, etc.
  • HelperHelpAccess: used to generate the toolbar's help link.

...

If possible, it should extend the parent template, not just replace it. Smarty 3 allows for inheritance by declaring {bloc name=""} tags. A child template can overload a parent block by open a block of the same name.

In addition to this section, you can read how to use helpers to overload a back-office template.

Template inheritance example: adding a new type of field in a form

...