Re: [fw-general] Re[fw-general] gistry values disappear

2008-02-12 Thread Matthew Weier O'Phinney
-- NShewmaker [EMAIL PROTECTED] wrote
(on Tuesday, 12 February 2008, 01:10 PM -0800):
 
 I initialize my Registry in my bootstrap with a few values.  My index/index
 action then tries to add some data, with set().  If I immediately output the
 registry, I can see the new addition.  However, it does not persist to other
 actions in the index (or any other) controller.
 
 Must all set()s be done in the bootstrap?  Must I use Zend_Session, instead?

Based on what you're describing, it sounds like you're expecting
Zend_Registry to persist data *between* requests. However, it doesn't.
If you want to persist data between requests, use Zend_Session.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


[fw-general] Re[fw-general] gistry values disappear

2008-02-12 Thread NShewmaker

I initialize my Registry in my bootstrap with a few values.  My index/index
action then tries to add some data, with set().  If I immediately output the
registry, I can see the new addition.  However, it does not persist to other
actions in the index (or any other) controller.

Must all set()s be done in the bootstrap?  Must I use Zend_Session, instead?
-- 
View this message in context: 
http://www.nabble.com/Registry-values-disappear-tp15443175s16154p15443175.html
Sent from the Zend Framework mailing list archive at Nabble.com.