On definit la configuration dans le index.php
This commit is contained in:
parent
b67316a2e8
commit
3ccf24e13a
@ -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()
|
||||
{
|
||||
|
@ -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();
|
Loading…
Reference in New Issue
Block a user