-- Dan Rossi <[EMAIL PROTECTED]> wrote
(on Thursday, 02 August 2007, 01:07 PM +1000):
> hi there, sorry I should compile these, when i set a config array from a 
> config xml to a registry entry, is this a persistant registry pointer 
> across pages, ie the xml doesnt get parsed each time ?
> 
> $config = new Zend_Config_Xml('../application/config/config.xml', 
> 'staging');
> 
> $registry = Zend_Registry::getInstance();
> $registry->set('config', $config);

The registry is a singleton registry, and as such it is persistent for
the duration of the request -- but not *between* requests. Remember, PHP
is a shared nothing architecture.

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

Reply via email to