Using this, but no Alerts display
/* Popup alert notification using Growl Notifications */
function growl_based_notification()
{
global $user_info;
if (!empty($user_info['mentions']))
// Say they have unread alerts.
echo "<pre>" . print_r($user_info, 1) . "<pre>\n";
echo '
<html ng-app="af_notify" ng-controller="growlCtrl">
<growl-notifications>
<growl-notification>
Psst ! You have unread notifications
</growl-notification>
</growl-notifications>
</html>';
}
growl_based_notification();
But when I add
echo "<pre>" . print_r($user_info, 1) . "<pre>\n";
it shows the alert window. But does not vanish even if I logout
