Helper: admin/util/notifier

« All helpers

Provides a public-accessible notifier similar to Elefant's Controller::add_notification() mechanism for admin users.

Usage:

// Initialize in PHP
$this->run ('admin/util/notifier');

// Initialize in a view template
{! admin/util/notifier !}

// Add notice in PHP
Notifier::add_notice ('My notification.');

// Add notice in JavaScript
$.add_notice ('My notification.');