Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Framework : Get bootstrap resource from anywhere in application

i wonder how do i get any bootstrap resource from anywhere in the application. eg. Zend_Validate, Zend_Auth_Adapter etc?

like image 636
Jiew Meng Avatar asked Jul 24 '10 14:07

Jiew Meng


1 Answers

$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
$resource = $bootstrap->getResource('whatEver')
like image 119
opHASnoNAME Avatar answered Jun 18 '23 01:06

opHASnoNAME