I'm trying to build a simple config bootstrap for use in multi-server environments. I realise there are lots of config bootstraps around, but a lot of the popular ones seem a bit complicated for what I need (and feel comfortable with) at this stage. I'm currently using this for the database.php file.
I want to create a global variable (or another type of variable that can be used in the same way) inside the config.php file, and then be able to output it inside the templates - how would I go about doing this?
I've tried creating this and adding it to the config.php file:
$config['my_google_analytics_key'] = 'UA-XXXXXXX-XX';
But entering {my_google_analytics_key}
inside my templates outputs {my_google_analytics_key}
rather than UA-XXXXXXX-XX
.
So I'm obviously going about this the wrong way, but I'm not sure what steps I'm missing. Thanks.