Small widget for displaying awesome flash messages
Yii 1.1 or above
Unpack to protected/extensions/widgets
in your theme or the view where you want to use the flash messages put this:
$this->widget('ext.widgets.etoastr.EToastr',array( 'flashMessagesOnly'=>true, //default to false 'message'=>'will be ignored', //because flashOnlyMessages is true //the options passed to the plugin 'options'=>array( 'positionClass'=>'toast-top-right', 'fadeOut' => 1000, 'timeOut' => 10000, 'fadeIn' => 1000 ) ));
Total 8 comments
thx , i use this widget always...
i suggest you to upgrade you'r widget like this for use complex Html messages on 'flashMessagesOnly'=>true,
regards...
working great. thnx
Some thing i was looking for long time
Great, awesome and very useful, thanks Brother.
wow...very cool... Thanks
Great, thanks! cause i coul'ndt use ToastMessage with my bootstrap application. I think etoastr will be more Yii friendly cause ToastMessage don't work in all case... (e.g. with bootstrap)
Keep this plugin alive
Thank you for your feedback, I didnt see ToastMessage before but it seems it is not the same jquery plugin and I keep this extesion always simple to use for one purpose.
Great, thanks! But I'm using ToastMessage now...
Leave a comment
Please login to leave your comment.