API17

JApplication::enqueueMessage: Difference between revisions

From Joomla! Documentation

m JoomlaWikiBot moved page JApplication::enqueueMessage/11.1 to API17:JApplication::enqueueMessage without leaving a redirect: Robot: Moved page
m User contributed notes: moving preparation
Line 67: Line 67:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JApplication]][[Category:JApplication::enqueueMessage]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 15:00, 11 May 2013

Joomla 11.1 JApplication::enqueueMessage

Description

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.
  • Returns void
  • Defined on line 390 of libraries/joomla/application/application.php
  • Since Joomla 11.1

See also

Template:SeeAlso:JApplication::enqueueMessage [Edit See Also]

Examples

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

<CodeExamplesForm />