TwistPHP Documentation

_successMessage

File path: dist/twist/Core/Controllers/Base.controller.php
Namespace: Twist\Core\Controllers
Extends:

_successMessageAdd an success message, the messages can be output using the {messages:success} template tag, you can also output all messages using {messages:all}.

Parameters

Name Type Description
$strMessagestringn/a
[$strKey = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strMessage 'foo';
$strKey null;

//Call the function _successMessage with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _successMessage($strMessage$strKey);