(on Friday, 13 February 2009, 02:23 AM +0200):
> What's the best way to make objects available "globally"? I mean
> available in the following:
>
> 1) In action controllers;
> 2) In Forms;
> 3) In Views;
>
> Sure I can use registry and then assign these objects to the views
> and/or forms in action controllers but what if I want to make these
> objects automatically assigned to ALL action controllers, views and
> forms in the project?
That's what a registry does -- you assign once, and pull out from
anywhere...
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论