Page 2 of 2

Posted: Fri Dec 08, 2006 11:27 am
by Jenk

Code: Select all

<?php

$object = new stdClass;

Zend::register('object', $object);

$object->foo = 'bar';

echo Zend::registry('object')->foo; //outputs 'bar'

?>