TwistPHP Documentation

messageHandler

File path: dist/twist/Twist.php
Namespace: \
Extends:

messageHandlerProcess the user messages to be output into the view
Tag: Tag can be any one of the below but not multiple.
{messages:all|error|notice|warning|success}
Tag Parameters:
combine - default is true (on)
key - pass in the required messages by key can be pipe (|) separated
style - determine th output styling, currently can be plain, rich or HTML
Example Tag:
{messages:error,combine=true,key=andi|dan,style=html}

Parameters

Name Type Description
$strReferencestringn/a
[$arrParameters = array()]arrayn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strReference 'foo';
$arrParameters = array();

//Call the function messageHandler with the example vars
Twist::Twist() -> messageHandler($strReference$arrParameters);