myzero1 / yii2-pms
Prevent multiple submissions for yii2 app
1.0.2
2017-12-07 01:18 UTC
Requires
- yiisoft/yii2: ~2.0
This package is not auto-updated.
Last update: 2026-03-11 16:24:24 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.