Classes and Methods Using e107's built-in classes and methods.

Alerts

You can assign and render 'alert' messages using the following.

<br />
$mes = e107::getMessage();

addSuccess()

$mes = e107::getMessage();
$mes->addSuccess('You did it!');

addError()

$mes = e107::getMessage();
$mes->addError('There was a problem!');

addWarning()

$mes = e107::getMessage();
$mes->addWarning('You do not have access to this area!');

addInfo()

$mes = e107::getMessage();
$mes->addInfo('Please take note!');

addDebug()

Messages assigned here will only be displayed when debug mode is active.

$mes = e107::getMessage();
$mes->addInfo('Please take note!');

render()

None of the above methods will output anything, until you use this method to render them.

$mes = e107::getMessage();
$mes->addInfo('Please take note!');
echo $mes->render();

Thursday 13 June 2013 - 00:00:00 admin,