// You may also use the following static methods to set the notification type:
Notification::warning(Notification::KEY_NEW_MESSAGE, 6, $message->id);
// Notification::success(Notification::ORDER_PLACED, $admin_id, $order->id);
Notification::error(Notification::KEY_NO_DISK_SPACE, 6);
//widget
NotificationsWidget::widget([
'theme' => NotificationsWidget::THEME_GROWL,
'clientOptions' => [
'location' => 'br',
],
'counters' => [
'.notifications-header-count',
'.notifications-icon-count'
],
'markAllSeenSelector' => '#notification-seen-all',
'listSelector' => '#notifications',
]); ?>
<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bell-o"></i>
<span class="label label-warning notifications-icon-count">0</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have <span class="notifications-header-count">0</span> notifications</li>
<li>
<ul class="menu">
<div id="notifications"></div>
</ul>
</li>
<li class="footer"><a href="#">View all</a> / <a href="#" id="notification-seen-all">Mark all as
seen</a></li>
</ul>
</li>`
But when i load the user page - have ZERO notifications on screen - in table all in
![screenshot from 2017-11-24 21-43-29](https://user-images.githubusercontent.com/18408229/33221436-94faf14a-d160-11e7-93af-eafcec676adf.png)
.
Please. help realize notifications --- i just want to show new notifications and write loop for new )
Thank you for response!