2017 © Pedro Peláez
 

yii2-extension yii2-request-behavior

The request behavior for the Yii framework

image

yiier/yii2-request-behavior

The request behavior for the Yii framework

  • Saturday, September 12, 2015
  • by djfly
  • Repository
  • 14 Watchers
  • 2 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Request Behavior for Yii 2

The request behavior for the Yii framework, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

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

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your Controller code by :, (*6)

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

The Versions

12/09 2015

dev-master

9999999-dev

The request behavior for the Yii framework

  Sources   Download

BSD-4-Clause

The Requires

 

extension yii2 behavior

11/09 2015

v0.1

0.1.0.0

The request behavior for the Yii framework

  Sources   Download

BSD-4-Clause

The Requires

 

extension yii2 behavior