Skip to content

Instantly share code, notes, and snippets.

@chartjes
Created August 10, 2015 14:21
Show Gist options
  • Save chartjes/ecba819f4a3314b6ad0a to your computer and use it in GitHub Desktop.
Save chartjes/ecba819f4a3314b6ad0a to your computer and use it in GitHub Desktop.
$application = new \Zend_Application(
APPLICATION_ENV,
array(
'config' => array (
APPLICATION_PATH . '/configs/application.ini',
APPLICATION_PATH . '/configs/local.ini'
)
)
);
$application->bootstrap()
->run();
@ciaranmcnulty
Copy link

$application_config = new Zend_Config_Ini(
    APPLICATION_PATH . '/configs/application.ini',
    APPLICATION_ENV
);

$local_config = new Zend_Config_Ini(
    APPLICATION_PATH . '/configs/local.ini',
    APPLICATION_ENV
);

// might be the other way around to this TBH
$config = $application_config->merge($local_config);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment