On Wednesday 05 October 2011 22:07:54 Mike Wright wrote:
> Hi all,
>
> I have a class, My_Stupid_Class, that doesn't extend anything. Given
> that, how do I access my bootstrap resources?
>
> Note the class name. That's about how I feel right now ;/
>
> Thank you...
In all cases, using the frontcontroller will definitely work:
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
In other cases (action controllers, action helpers etc) it can be done easier,
but in a class just on its own, this is the easiest solution.
Regards, Jurian
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]