Documentation

Core_Message
in package

Message helper

Tags
subpackage

Core

version
7.x
author

Hostmake LLC

copyright

© 2005-2022 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

get()  : string
Get message.
show()  : mixed
Show message.

Methods

get()

Get message.

public static get( $message[,  $type = 'success' ]) : string
echo Core_Message::get(Core::_('constant.name')); echo Core_Message::get(Core::_('constant.message', 'value1', 'value2'));
Parameters
$message :

Message text

$type : = 'success'

Message type

Tags
see
Core_Message::show()
Return values
string

show()

Show message.

public static show( $message[,  $type = 'success' ]) : mixed
// Success message Core_Message::show(Core::_('constant.name'));

// Error message Core_Message::show(Core::_('constant.message', 'value1', 'value2'), 'error');

Parameters
$message :

Message text

$type : = 'success'

Message type

Return values
mixed

Search results