Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
Classes of Jason Hopkins | > | Singleton Registry | > | doc.txt | > | Download | ||
|
Download |
This registry class was designed based off of the KISS (Keep It Simple Stupid) principle. All you need to do is load the class and add variables to it as in the following example: $reg = Registry::Load_Registry(); $reg->var = 'new_var'; echo isset('new_var'); $myvar = $reg->var; unset('new_var'); echo isset('new_var'); More features, including automatic variable sanitation will be added soon. If you have any suggestions/comments, feel free to let me know. |