Componette

Componette

ipublikuj-archive

ipublikuj-archive / flash-messages v3.0.2

Flash messages handler for Nette Framework (2.4+)

download-cloud-line composer require ipub/flash-messages

Flash Messages

Build Status Scrutinizer Code Coverage Scrutinizer Code Quality Latest Stable Version Composer Downloads License

Flash messages handler for Nette Framework

This extension replace default flash messages handling. If you want to use one interface for displaying messages, use this extension. For eg. if you are showing messages in modal windows, but sometimes this windows are deactivated, you can reach it with this extension. It store messages in one place and check if were displayed or not.

Installation

The best way to install ipub/flash-messages is using Composer:

$ composer require ipub/flash-messages

After that you have to register extension in config.neon.

extensions:
    flashMessages: IPub\FlashMessages\DI\FlashMessagesExtension

Package contains trait, which you will have to use in presenters or components to implement Flash messages component factory.

<?php

class BasePresenter extends Nette\Application\UI\Presenter
{
    use IPub\FlashMessages\TFlashMessages;

    // ...
}

Documentation

Learn how to use flash messages in different way in documentation.


Homepage https://www.ipublikuj.eu and repository http://github.com/iPublikuj/flash-messages.

  • v3.0.2 v3.0.2

    • Just renaming organization
  • v3.0.1 v3.0.1

  • v3.0.0 v3.0.0

    • Preparing for Nette 3.0
  • v2.0.10 v2.0.10

    • Yet another code cleaning
  • v2.0.9 v2.0.9

    • Updating project url
  • v2.0.8 v2.0.8

    • Just code cleaning & minor fixes
  • v2.0.7 v2.0.7

    • Minor changes & code cleaning
  • v2.0.6 v2.0.6

    • Upgrading to PHP7.1
  • v2.0.5 v2.0.5

    • Added PHP 7.2 support
  • v2.0.4 v2.0.4

    • Updated dependencies
  • v2.0.3 v2.0.3

    • Fix: Displaying same message in two requests
  • v2.0.2 v2.0.2

    • Just code clenaning & coding standards
  • v2.0.1 v2.0.1

    • Added support for disabling translator
    • Added support for ipub/packages
  • v2.0.0 v2.0.0

    • Upgraded to nette 2.4
    • Upgraded to PHP7
    • Minor bugs fixed
  • v1.0.2 v1.0.2

    • Improved adding messages
    • Title is now translatable
    • Parameters can now be skipped
  • v1.0.1 v1.0.1

    • Added component factory to presenter trait
  • v1.0.0 v1.0.0

    • Initial release
Componette Componette felix@nette.org