eye4web / eye4web-zfc-user-ban
Adding ban-functionality to ZfcUser
0.0.2
2016-12-23 22:28 UTC
Requires
- php: >=5.4
- zf-commons/zfc-user: ^1.4
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: 4.*
- squizlabs/php_codesniffer: 1.5.*
- zendframework/zend-captcha: ~2.1
This package is not auto-updated.
Last update: 2024-11-01 03:26:20 UTC
README
Introduction
This module will allow you to ban a user by setting a flag in your database.
Installation
With composer
-
Add this project composer.json:
"require": { "eye4web/eye4web-zfc-user-ban": "dev-master" }
-
Now tell composer to download the module by running the command:
$ php composer.phar update
-
Enable it in your
application.config.php
file.<?php return array( 'modules' => array( // ... 'Eye4web\ZfcUser\Ban' ), // ... );
-
Make your user entity implement
Eye4web\ZfcUser\Ban\UserBannableInterface
Change 'banned' landing page
If you want to use your own view, for the user banned landing page, all you have to is create a new view file in this
path: ´view/eye4web/zfc-user/ban/index.phtml. Alternatively you can overwrite the route
eye4web_zfcuser_ban` and point it to your own controller.