Mostrando mensagens de erro

From Basef
Revision as of 15:14, 9 September 2015 by Admin (Talk | contribs) (Criou página com 'Para mostrar mensagens de erro (na próxima requisição do Joomla): <source lang="php"> // Gets a handle to the Joomla! application object $app =& JFactory::getApplication()...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Para mostrar mensagens de erro (na próxima requisição do Joomla):

// Gets a handle to the Joomla! application object
$app =& JFactory::getApplication(); 
 
// Adds a message to the message queue
$app->enqueueMessage( JText::_( 'Some error occurred' ), 'error' );