2017 © Pedro PelĂĄez
 

library eye4web-zfc-user-ban

Adding ban-functionality to ZfcUser

image

eye4web/eye4web-zfc-user-ban

Adding ban-functionality to ZfcUser

  • Friday, December 23, 2016
  • by Danielss89
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7,133 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

Eye4webZfcUserBan

Build Status Latest Stable Version Latest Unstable Version Code Climate Test Coverage Total Downloads License, (*1)

Introduction

This module will allow you to ban a user by setting a flag in your database., (*2)

Installation

With composer

  1. Add this project composer.json:, (*3)

    "require": {
        "eye4web/eye4web-zfc-user-ban": "dev-master"
    }
    
  2. Now tell composer to download the module by running the command:, (*4)

    $ php composer.phar update
    
  3. Enable it in your application.config.php file., (*5)

    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\Ban'
        ),
        // ...
    );
    
  4. Make your user entity implement Eye4web\ZfcUser\Ban\UserBannableInterface, (*6)

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 routeeye4web_zfcuser_ban` and point it to your own controller., (*7)

The Versions