Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Extension Design > Using the Registry

Using the Registry

Joomla! provides us with the class JRegistry; this class enables us to store and retrieve data using namespaces. Data stored in a JRegistry object is organized using a hierarchy based on namespaces.

Namespaces are unique hierarchical tree identifiers used to categorize data. Imagine we want to store the number of sightings of animals in an area. We could use the following hierarchy:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial