stefanotorresi/my-popup

This package is abandoned and no longer maintained. No replacement package was suggested.

A very simple Zend Framework 2 module to handle cookie timed popups

0.2.1 2014-02-24 14:24 UTC

This package is auto-updated.

Last update: 2022-02-01 12:26:59 UTC


README

#MyPopup Latest Stable Version Latest Unstable Version Build Status Code Coverage Scrutinizer Quality Score

A very simple Zend Framework 2 module to handle cookie timed popups.

It basically appends a view template to the response (ala ZendDeveloperTools toolbar) only once per any given seconds.

The actual javascript popup functionality is left to the user at the moment, but may come in later.

##Installation

Best way is via Composer: composer require stefanotorresi/my-popup:0.* You can also either clone the repo via Git or download the tarball and unpack it manually (note: didn't actually test this... besides, use Composer!).

Once you have the package, just add the module MyPopup to your zf2 application.config.php.

##Usage

The module supports two configuration settings:

[
    'MyPopup' => [
        'timeout' => 604800 // default is one week, in seconds
        'template' => 'my-popup/popup' // change this!
    ],
]

You will have to take care of registering the template you want to use in the zf2 ViewManager.