API15

JController/setMessage: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 46: Line 46:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setMessage
  category=setMessage
  category=JController
  category=JController
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 00:24, 25 March 2017

Description

Sets the internal message that is passed with a redirect

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples