(01-12-2015, 05:19 AM)Avenirer Wrote: Why use a hook? You can define the environment inside the index.php
Because I am collaborating on this project with other developers and we don't want to make local changes to a file only to have our local changes overwritten by some other developer's local changes -- or to commit local changes to a file required for the production server.
Local configuration settings should be
a) in a file that is not required for the production server
b) in a file that is not checked into a git repository (i.e., it's listed in the .gitignore file)