PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Zend Framework 101: Zend_Registry

Article Comments (1 total)

Thuan Nguyen, 17 March 2009
I have written a simple function to use it easier. Hope that this will help the people who feel lazy to write the code :D /** * Sets or gets Registry Entry * * @param string $name * @param mixed $value * @return mixed */ function reg($name, $value = null) { if (null !== $value) { Zend_Registry::set($name, $value); return $value; } return Zend_Registry::get($name); }
Submit a Comment
Use the following form to submit a comment for this article. You can include any required code snippets, which we will format and highlight accordingly.


Note: Before your comment appears on PhpRiot, it must be manually approved. The email address field is optional. If you choose to include it, it will be displayed obfuscated to protect it from spammers.

In This Article