You can do Zend_Registry::set() anywhere and Zend_Registry::get() anywhere. I'm not sure what was causing the issue I had before, but I am setting and getting arrays in other aspects of my app. Best example would be the config.xml. In my bootstrap I read in the config.xml via Zend_Config_Xml and put it in the registry. Then I retrieve it in a controller to setup a database connection or retrieve environment config settings.
The registry acts like a global varbiable store house so where you set and get don't matter, so long as your not trying to get something that hasn't been set...
If you could post some code snippets I bet we could help you out a bit better.
thanks
|