Created
April 17, 2013 21:43
-
-
Save nclundsten/5408030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This makes our life easier when dealing with paths. Everything is relative | |
* to the application root now. | |
*/ | |
chdir(dirname(__DIR__)); | |
// Setup autoloading | |
include 'init_autoloader.php'; | |
$config = include 'config/application.config.php'; | |
$host = $_SERVER['HTTP_HOST']; | |
$file = 'config/' . $host . '.modules.php'; | |
if (file_exists($file)) { | |
$config = \Zend\Stdlib\ArrayUtils::merge($config, include $file); | |
} | |
// Run the application! | |
Zend\Mvc\Application::init($config)->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment