protected function registerNotification(array $notification)
    {
        $view = $this->getView();

        $options = Json::encode(ArrayHelper::merge($this->getClientOptions(), $notification));
        $view->registerJs("new PNotify({$options});");
    }
protected function registerNotification(array $notification)
    {
        $view = $this->getView();

        $options = Json::encode(ArrayHelper::merge($this->getClientOptions(), $notification));
        $view->registerJs("new PNotify({$options});");
    }
protected function registerNotification ( array $ notification ) { $ view = $ this -> getView ( ) ; $ options = Json :: encode ( ArrayHelper :: merge ( $ this -> getClientOptions ( ) , $ notification ) ) ; $ view -> registerJs ( "new PNotify({$options});" ) ; }
Registers JS for PNotify plugin.
@param array $notification configuration array
Registers JS for PNotify plugin .