On definit la configuration dans le index.php

This commit is contained in:
Michael RICOIS 2011-09-29 15:23:13 +00:00
parent b67316a2e8
commit 3ccf24e13a
2 changed files with 4 additions and 7 deletions

View File

@ -1,13 +1,7 @@
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function run()
{
$configuration = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini');
Zend_Registry::set('configuration', $configuration);
parent::run();
}
//Initialisation global des paramètres de vue
protected function _initViewSettings()
{

View File

@ -22,5 +22,8 @@ $application = new Zend_Application(
APPLICATION_PATH . '/configs/application.ini'
);
$configuration = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini');
Zend_Registry::set('configuration', $configuration);
$application->bootstrap()
->run();