...
On top of that, PrestaShop defines the ppp()
and ddd()
method, which are respectively the aliases of p()
and d()
. They work exactly the same, but are often easier to search and find in a huge block of code.
But these These debug methods are not available by default. To activate them, you must enable the Debug mode. This is done by editing the /config/defines.inc.php
file:
Code Block |
---|
define('_PS_MODE_DEV_', true); |
Enabling the multistore mode
...
config.inc.php
It is the main config configuration file file for PrestaShop. You should not have to touch anything in there.
defines.inc.php
This file contains PrestaShop constant values.
It also contains the location of all the files and folders. If you need to change their location, do not forget to keep the original path nearby, for instance in a PHP comment, in case you need to revert back to it later on.
When in development/test mode, you must make sure to be able to view all the error messages:
- Set
@ini_setdefine('display_errors', 'Off');
to "On
".Setdefine('PS_DEBUGMODE_SQLDEV_', false);
to "true
".
On the contrary, when in production mode, you must hide error messages as much as possible! Make sure that:
@ini_setdefine('display_errors', 'Off');
is set to "Off
".define('PS_DEBUGMODE_SQLDEV_', false);
is set to "false
".
defines.inc.php
This file contains PrestaShop constant values.
It also contains the location of all the files and folders. If you need to change their location, do not forget to keep the original path nearby, for instance in a PHP comment, in case you need to revert back to it later on.
smarty.inc.php
This file contains all the Smarty-related settings.
...