Re: [fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-13 Thread Matthew Weier O'Phinney
-- Razorblade wrote (on Wednesday, 13 May 2009, 04:16 AM -0700): > I have another question related to the registry. > If this > > $registry = Zend_Registry::getInstance(); > > and this > > $registry = > Zend_Controller_Front::getInstance()->getParam('bootstrap')->getContainer(); > ( or from

Re: [fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-13 Thread Razorblade
Hi, I have another question related to the registry. If this $registry = Zend_Registry::getInstance(); and this $registry = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getContainer(); ( or from a controller $registry = $this->getInvokeArg('bootstrap')->getContainer(); )

Re: [fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Matthew Weier O'Phinney
-- Sergio Rinaudo wrote (on Thursday, 07 May 2009, 04:39 PM +0200): > I reply to myself, > I use to create a registry resource > > > > protected function _initRegistry(){ > $registry = Zend_Registry::getInstance(); > $config = new Zend_Config($this->getOptions()); > $re

[fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-07 Thread Sergio Rinaudo
I reply to myself, I use to create a registry resource protected function _initRegistry(){ $registry = Zend_Registry::getInstance(); $config = new Zend_Config($this->getOptions()); $registry->config = $config; return $registry; } then call $registry =