Yii 1.1: dstnotify

Flash messages implementation for Yii framework
2 followers

Flash messages extensions for YII 1.x framework.

Features

  • easy way for generating one time notifications
  • four type of messages (success, warning, error and notice)
  • style with images for each message type

Examples

Render message in view (e.g. header of main layout view)

DstNotify::getInstance()->render();

Add info message

DstNotify::getInstance()->addMessage(DstNotify::MESSAGE_TYPE_INFO, 'Lorem ipsum ...');

Add success message

DstNotify::getInstance()->addMessage(DstNotify::MESSAGE_TYPE_SUCCESS, 'Lorem ipsum ...');

Add error message

DstNotify::getInstance()->addMessage(DstNotify::MESSAGE_TYPE_ERROR, 'Lorem ipsum ...');

Add warning message

DstNotify::getInstance()->addMessage(DstNotify::MESSAGE_TYPE_WARNING, 'Lorem ipsum ...');

Screenshot

Resources

  • [GitHub] (https://github.com/mmedojevicbg/dstnotify)

Total 1 comment

#17886 report it
PolarBear at 2014/08/06 06:19am
Some notes

MESSAGE_TYPE_INFO - doesn't working. When i try to use MESSAGE_TYPE_NOTICE there is no message.

Leave a comment

Please to leave your comment.

Create extension
Downloads