pnotify Widget for using JQuery plugin "Pines Notify - Notifications for Bootstrap or jQuery UI"

  1. Requirements
  2. Usage
  3. Options
  4. Resources

I just quickly wrote a widget for the JQuery plugin Pines Notify - Notifications for Bootstrap or jQuery UI.

Check the Pines Notify Website for examples and documentation.

Have a look at the Github Repo.

Also have a look at this extension: Pines Tags

Special thanks to Chillance who implemented the flash support!


Yii 1.1 or above


Just extract the files in your extensions directory.

There are three ways to use this widget: the very simple way, the normal way, and the flash messages way.

The very simple way

This will create a very simple notification without a title and any options. Just submit a "message". Any given options will be ignored.

    'message'=>'I am really a very simple notification')

Result: ~~~ $.pnotify("I am really a very simple notification"); ~~~

The normal way

Here we go: DONT use the key "message", fill the notification with options.

        'title'=>'You did it!',
        'text'=>'This notification is awesome! Awesome like you!',

Result: ~~~ $.pnotify({'title':'You did it!','text':'This notification is awesome! Awesome like you!','type':'success','closer':false,'hide':false}); ~~~

Using with Flash messages
              'flash_messages_only' => true,

And then when you do:

Yii::app()->user->setFlash('success', array('title' => 'Login Successful!', 'text' => 'You successfully logged in. Enjoy!'));

You get the nice message because of: ~~~ $.pnotify({'type':'success','title':'Login Successful!','text':'You successfully logged in. Enjoy!'}); ~~~


You can use ALL the options Pines Notify offers.



8 0
Yii Version: 1.1
License: (not set)
Category: User Interface
Developed by: Yerlt
Created on: Jan 1, 2013
Last updated: 10 years ago


show all

Related Extensions