stefanotorresi / my-popup
A very simple Zend Framework 2 module to handle cookie timed popups
Requires
- php: >5.4.1
- zendframework/zendframework: 2.*
This package is auto-updated.
Last update: 2022-02-01 12:26:59 UTC
README
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
.