> $registry = Zend_Registry::getInstance();
> $registry['key'] = 'value';
The current Zend.php class supports this now, so only the names of the
class and methods have changed in C/E.
Regarding static accessors for the "special" instance stored in a static
variable, they can easily be added using a subclass of Zend_Registry.
I'm in favor of keeping Zend_Registry as light as possible.
Cheers,
Gavin
Stanislav Malyshev wrote:
I've updated the proposal page started by Gavin and Andries with yet
another proposed solution, "Solution E". I populated the class
skeletons to illustrate this solution. I would prefer Solution E (of
course :-).
http://framework.zend.com/wiki/x/j1
I'm not sure I understand - what I'm supposed to do now instead of
Zend::dump? Also, I think that:
$registry = Zend_Registry::getInstance();
$registry['key'] = 'value';
is better than:
Zend::regiser("key", "value")
There should be some shortcuts. E.g. something like
Zend_Registry::put($key, $value) and Zend_Registry::get($key) so you
don't have to do getInstance each time.
Also, what would become to Zend::initRegistry?
Also, if we do loader class, I think it would be a good idea to
interface with spl_autoload etc.