Base Controller

Sets the internal message that is passed with a redirect.

  • string $text - Message to display on redirect.
  • string $type - Message type. Optional, defaults to 'message'.
  • return string - Previous message
public function setMessage($text, $type = 'message')
{
$previous = $this->message;
$this->message = $text;
$this->messageType = $type;

return $previous;
}