yiier/yii2-request-behavior The request behavior for the Yii framework

extensionbehavior

Request Behavior for Yii 2

The request behavior for the Yii framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yiier/yii2-request-behavior "dev-master"

or add

"yiier/yii2-request-behavior": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your Controller code by :

public function behaviors()
{
    return [
        // code ...
        [
            'class' => ThrottleBehavior::className(),
            'message'=>'您操作太频繁了,10秒内不能重复操作。'
        ],
    ];
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • v0.111 September 2015

Comments



v0.1 is the latest of one release



BSD-4-Clause license
Stats
2 github stars & 1 github forks
0 downloads in the last day
1 downloads in the last 30 days
13 total downloads