The most used Smarty constants
Sometimes, in the Smarty files of your theme or in your module’s templates, you will have to insert images or links to files. If you use WordPress, you may be familiar with constants such as TEMPLATEPATH
to get the absolute path of the template files of the current theme. PrestaShop provides many constants, just like WordPress does.
The most important constants are assigned to Smarty in the assignGeneralPurposeVariables()
method of the /classes/controller/FrontController.php
file. The following constants are the most useful (if you want to get them all, feel free to reverse-engineer the FrontController
class):
Constant |
Content of the constant |
|
PrestaShop |
|
PrestaShop |