In one of the previous recipes, we have seen how to save important messages from a module to the Admin Log. Sometimes, however, we may need to actively communicate important messages to the administrator.
This recipe demonstrates how to place a message on the Admin alert queue.
"method.install.php"in your editor (or create a new install file), and add the following lines:
$db = $gCms->GetDb(); $dict = NewDataDictionary( $db ); $flds = " item_id I KEY, title C(80), description X, inventory I"; ...