Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mparker17/drupal-settings_local_snippets
Snippets to use in a `settings.local.php` file.
https://github.com/mparker17/drupal-settings_local_snippets
drupal php snippets
Last synced: about 2 months ago
JSON representation
Snippets to use in a `settings.local.php` file.
- Host: GitHub
- URL: https://github.com/mparker17/drupal-settings_local_snippets
- Owner: mparker17
- License: gpl-2.0
- Created: 2015-01-09T17:26:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T19:07:56.000Z (over 4 years ago)
- Last Synced: 2024-11-03T00:42:11.894Z (3 months ago)
- Topics: drupal, php, snippets
- Language: PHP
- Size: 46.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drupal7-settings_local_snippets
Snippets to use in a `settings.local.php` file.Use these to construct a `settings.local.php` file.
Don't forget to add `settings.local.php` to your project's `.gitignore`, and the following snippet to the bottom of your `settings.php` file:
```
/**
* Include a local settings file if it exists.
*/
$local_settings = dirname(__FILE__) . '/settings.local.php';
if (file_exists($local_settings)) {
include $local_settings;
}
```