Zend Framework: Get bootstrap resource from anywhere in application


/ Published in: PHP
Save to your folder(s)

referenced: [stack overflow](http://stackoverflow.com/questions/3325481/zend-framework-get-bootstrap-resource-from-anywhere-in-application/3328384#3328384)


Copy this code and paste it in your HTML
  1. $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
  2. $resource = $bootstrap->getResource('whatEver')

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.