Skip to content

Instantly share code, notes, and snippets.

@joebordes
Created September 21, 2017 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joebordes/1502f50006d827aab3f1eb539182501e to your computer and use it in GitHub Desktop.
Save joebordes/1502f50006d827aab3f1eb539182501e to your computer and use it in GitHub Desktop.
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