Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
coreBOS Application Message outputs
<?php
include_once('vtlib/Vtiger/Module.php');
require_once('Smarty_setup.php');
$smarty = new vtigerCRM_Smarty();
$smarty->assign('APP', $app_strings);
$smarty->assign('ERROR_MESSAGE_CLASS', 'cb-alert-warning');
$smarty->assign('ERROR_MESSAGE', 'This is a WARNING message.');
$smarty->display('applicationmessage.tpl');
$smarty->assign('ERROR_MESSAGE_CLASS', 'cb-alert-danger');
$smarty->assign('ERROR_MESSAGE', 'This is a DANGER message.');
$smarty->display('applicationmessage.tpl');
$smarty->assign('ERROR_MESSAGE_CLASS', 'cb-alert-info');
$smarty->assign('ERROR_MESSAGE', 'This is an INFO message.');
$smarty->display('applicationmessage.tpl');
$smarty->assign('ERROR_MESSAGE_CLASS', 'cb-alert-success');
$smarty->assign('ERROR_MESSAGE', 'This is a SUCESS message.');
$smarty->display('applicationmessage.tpl');
$smarty->assign('OPERATION_MESSAGE', 'This is a special operation NOT permitted message.');
$smarty->display('modules/Vtiger/OperationNotPermitted.tpl');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.