Sample Project Using Environment to Auto-Configure Database Connection
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
controllers
tmp
vendors
views
webroot
.gitignore
.htaccess
README.md
app_controller.php
app_helper.php
app_model.php
index.php

README.md

CakePHP Environment Example

This application demonstrates how to use the Environment library to automatically configure the database connection based on the SERVER_NAME env variable.

Files to check out

  • vendors/environment.php
  • config/bootstrap.php
  • config/environments.php
  • config/database.php

Notes

The application was baked with CakePHP 1.3.