Reputation: 43491
I have an "environment" config file that I'm using to separate dev from staging from prod and I'd like to include it in another config file to determine the proper path.
Upvotes: 0
Views: 351
Reputation: 314
I'm assuming you want to load it from your config.php
and/or database.php
. Just include it like you'd include any other file in PHP (using either include
or require
).
require('environment_config.php');
Upvotes: 2