dstnotify Flash messages implementation for Yii framework

  1. Features
  2. Examples
  3. Screenshot
  4. Resources

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

1 0
2 followers
201 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: Marko Medojevic
Created on: Jul 31, 2014
Last updated: 3 years ago

Downloads

show all

Related Extensions