The most important constants to set as a developer
Earlier, we saw in the initialization process that all the constants are defined in /config/config.inc.php
. This file includes /config/defines_custom.inc.php
if it exists.
If you need to set custom constants, /config/defines_custom.inc.php
is a good place to put their definitions.
We also saw that the /config/defines.inc.php
file was also included in the /config/config.inc.php
file. Two very useful constants to set are the following:
_PS_MODE_DEV_
: If you set it totrue
, it will enable the debug mode for the whole shop. Inside Symfony controllers, you can use the awesome profiler.
Important note
All warnings, notices, and errors will be displayed. Do not use the debug mode in production if you want to keep your user experience safe. It is useful for developers but not for your customers! If you want to disable it, you have to set it to false
.
_PS_DEBUG_PROFILING_
: If you set it totrue
, you will get...