Amélioration
This commit is contained in:
parent
3f7061b48d
commit
6c3fa57080
@ -29,7 +29,6 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
->appendFile($pathScript.'/jquery.cookie.js', 'text/javascript')
|
||||
->appendFile($pathScript.'/jquery-ui.js', 'text/javascript')
|
||||
->appendFile($pathScript.'/jquery.qtip.js', 'text/javascript')
|
||||
->appendFile($pathScript.'/jquery.qtip.js', 'text/javascript')
|
||||
->appendFile($pathScript.'/scripts.js', 'text/javascript')
|
||||
->appendFile($pathScript.'/jquery.jstree.js', 'text/javascript')
|
||||
->appendFile($pathScript.'/fields.js', 'text/javascript');
|
||||
@ -48,9 +47,9 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
|
||||
protected function _initDb()
|
||||
{
|
||||
$dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'databases');
|
||||
$configuration = Zend_Registry::get('configuration');
|
||||
try {
|
||||
$db = Zend_Db::factory($dbConfig->db);
|
||||
$db = Zend_Db::factory($configuration->databases->db);
|
||||
Zend_Db_Table::setDefaultAdapter ($db);
|
||||
} catch ( Exception $e ) {
|
||||
exit ( $e->getMessage() );
|
||||
|
Loading…
Reference in New Issue
Block a user