list notifications widgets, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist gudezi/yii2-notifications-widget "*"
or add, (*4)
"gudezi/yii2-notifications-widget": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
```php, (*7)
// Example of data.
$data = [
['url' => '', 'user' => 'Equipo de soporte','image' => '','time' => '5 min','message' => 'Make Deploy?'],
['url' => '', 'user' => 'Equipo de Desarrollo','image' => '','time' => '6 min','message' => 'Make Deploy?']
];
<?= gudezi\notifications\NotificationsWidget::widget(
[
'options' => ['class' => 'sidebar-menu'],
'items' => $itemsMessage,
'directoryAsset' =>$directoryAsset,
'type' => gudezi\notifications\NotificationsWidget::TYPE_MESSAGE,
]
) ?>```