JController/setMessage: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 42: | Line 42: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=setMessage | category=setMessage | ||
category=JController | category=JController | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:25, 25 March 2017
Description
Sets the internal message that is passed with a redirect
<! removed transcluded page call, red link never existed >
Syntax
setMessage($text)
| Parameter Name | Default Value | Description |
|---|---|---|
| $text | The message |
Returns
string Previous message
Defined in
libraries/joomla/application/component/controller.php
Importing
jimport( 'joomla.application.component.controller' );
Source Body
function setMessage($text)
{
$previous = $this->_message;
$this->_message = $text;
return $previous;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples