JApplication::enqueueMessage
From Joomla! Documentation
Revision as of 19:41, 11 May 2013 by JoomlaWikiBot (talk | contribs) (→See also: moving preparation)
Revision as of 19:41, 11 May 2013 by JoomlaWikiBot (talk | contribs) (→See also: moving preparation)
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JApplication::enqueueMessage[edit]
Description[edit]
Enqueue a system message.
Template:Description:JApplication::enqueueMessage [Edit Descripton]
public function enqueueMessage (
$msg
$type= 'message'
)
Parameter | Type | Default | Description |
---|---|---|---|
$msg | string | The message to enqueue. | |
$type | string | 'message' | The message type. |
See also[edit]
- JApplication::enqueueMessage source code on BitBucket
- Class JApplication
- Subpackage Application
- Other versions of JApplication::enqueueMessage
Template:SeeAlso:JApplication::enqueueMessage [Edit See Also]
Examples[edit]
To enqueue a message (in a module) for a administration/backend component:
$this->_mainframe->enqueueMessage('YOUR MESSAGE GOES HERE', 'message');
To enqueue a message (in a module) for a website/frontent component:
JFactory::getApplication()->enqueueMessage('YOUR MESSAGE GOES HERE', 'message');
User contributed notes[edit]
<CodeExamplesForm />