Never mind my previous post, as it was a stupid typo that prevent me from
getting bootstrap object from front controller.
$bootstrap =
Zend_Controller_Front::getInstance()->getParam('bootstrap');
$db = $bootstrap->getResource('db');
Cheers and good luck!
Dmitry.
--
View this message in context: http://www.nabble.com/Get-default-adapter-in-model-%28best-practice-%29-tp24604392p24604512.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论