references:joomla.framework:database:jdatabase-getinstancegetInstance
Returns a reference to the global Database object, only creating it if it doesn’t already exist. SyntaxJDatabase &getInstance ( $option )
To connect to the Joomla! database you should not call this method directly. Instead use the JFactory class as follows: Getting a reference to the Joomla! database object <?php $db = & JFactory::getDBO(); ?> Discussion |


