LV
Back to writing

// Zend Framework 1 · Desenvolvimento Web · PHP

Accessing the dbAdapter or Another Bootstrap Resource From Anywhere in the Application [Zend Framework 1]

$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
$resource = $bootstrap->getPluginResource('db');
$adapter = $resource->getDbAdapter();

Comments 0

No comments yet.