Add pdo in registry
This commit is contained in:
parent
8a6038e632
commit
f78d26b924
@ -146,6 +146,17 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||||||
exit;
|
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
|
* Set the default adapter to use with all model
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user