JFactory Class

From Joomla! Documentation

Revision as of 07:29, 4 September 2008 by Rfriedel (Talk | contribs)

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.


Access JFactory:

    $var =& JFactory::content();

Access an open database via JFactory:

    $database =& JFactory::getDBO();

Access a document:

    $document =& JFactory::getDocument();

    $uri =& JFactory::getURI();     

The following provides access to the logged-in user info.

    $user =& JFactory::getUser();

See Also