Last active
May 9, 2018 14:15
-
-
Save gartes/cfdf966217a4be71b70065b81a9e02bd to your computer and use it in GitHub Desktop.
JFactory::getDBO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$db = JFactory::getDBO (); | |
$query = $db->getQuery(true); | |
// .... | |
try { | |
// echo $query->dump(); | |
$db->setQuery($query); | |
$result = $db->loadResult(); | |
}catch (Exception $e){ | |
$mes = $e->getMessage() . "\n\r" ; | |
$mes .= 'File:' . __FILE__ . "\n\r" ; | |
$mes .= 'Line: '.__LINE__ . "\n\r" ; | |
JFactory::getApplication()->enqueueMessage( $mes , 'error'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1321321