Add pdo in registry

This commit is contained in:
Michael RICOIS 2016-08-30 09:57:42 +02:00
parent 8a6038e632
commit f78d26b924

View File

@ -146,6 +146,17 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
exit;
}
$pdo = new Metier_Util_PdoLib();
if ($pdo === false) {
if (APPLICATION_ENV == 'development') {
echo '<pre>'; print_r($e); echo '</pre>';
} else {
echo "Le service rencontre actuellement un problème technique.";
}
exit;
}
Zend_Registry::set('pdo', $pdo);
/**
* Set the default adapter to use with all model
*/