eye4web/eye4web-zfc-user-ban
Composer 安装命令:
composer require eye4web/eye4web-zfc-user-ban
包简介
Adding ban-functionality to ZfcUser
README 文档
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.phpfile.<?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.
统计信息
- 总下载量: 17.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-09-18