myzero1/yii2-pms

Prevent multiple submissions for yii2 app

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.2 2017-12-07 01:18 UTC

This package is not auto-updated.

Last update: 2024-11-20 10:34:59 UTC


README

Prevent multiple submissions by js and php, for yii2.

Installation

The preferred way to install this module is through composer.

Either run

php composer.phar require myzero1/yii2-pms:1.*

or add

"myzero1/yii2-pms": "~1"

to the require section of your composer.json file.

Setting

Once the extension is installed, simply modify your application configuration as follows:

return [
    'as PreMulSubmissions' => [
        'class' => myzero1\pms\behaviors\PreventMultipleSubmissionsBehavior::class,
        // 'excludedRoutes' => [
        //     'site/login',
        // ],
    ],
    'components' => [
    // ...
];

Usage

You can use it,now.