-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 08:33 AM -0700):
>
> I did exactly what you say but I was getting a "class not found" error.
Did you load the Zend_Registry class?
require_once 'Zend/Registry.php';
// or, if Zend_Loader is already loaded:
Zend_Loader::loadClass('Zend_Registry');
> [EMAIL PROTECTED] wrote:
> >
> > On 19/03/07, Nick Lo <[EMAIL PROTECTED]> wrote:
> >> Zend_Registry::set('config',$config);
> >> Zend_Registry::get('config');
> >>
> >> http://framework.zend.com/manual/en/zend.registry.html
> >>
> >
> >
> > Zend_Registry::set('config',$config); replaces Zend::register()
> >
> > Zend_Registry::get('config'); replaces Zend::registry()
> >
> >
> > Still, I hope Zend::registry() not removed because it exists in all
> > Actions ^^
> > while Zend::register() only in bootstrap
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/