I have several of my own constants in symfony and need to make them available throughout the application, where are they best defined?
I tried in the directory to myapps\config\config.phpdefine my constant like this:
sfConfig::set('aaa', 'mya');
But when I tried to access the constant in myapps\apps\frontend\modules\login\actions\actions.class.phpusing this command
sfConfig::get('aaa')
I just get zero, indicating that it is not defined.
How and where to define a symfony constant so that it is available throughout the project?
source
share