Core_Message
in package
Message helper
Tags
Table of Contents
Methods
Methods
get()
Get message.
public
static get(mixed $message[, mixed $type = 'success' ]) : string
echo Core_Message::get(Core::_('constant.name'));
echo Core_Message::get(Core::_('constant.message', 'value1', 'value2'));
Parameters
- $message : mixed
-
Message text
- $type : mixed = 'success'
-
Message type
Tags
Return values
stringshow()
Show message.
public
static show(mixed $message[, mixed $type = 'success' ]) : mixed
// Success message
Core_Message::show(Core::_('constant.name'));
// Error message
Core_Message::show(Core::_('constant.message', 'value1', 'value2'), 'error');
Parameters
- $message : mixed
-
Message text
- $type : mixed = 'success'
-
Message type