Nabble - Zend Framework - Bootstrap Resource usage in model - best practice advice please - 0 views
-
public function getCache(){ if (null === $this->_cache) { $this->_cache = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('Cache'); } return $this->_cache;}
-
back-2-95 on 30 Jan 10One way to get bootstrap resource from eg. model or anywhere in your Zend application
-