ignatenkovnikita / yii2-callback
Yii2 Callback Module
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2024-10-20 20:09:06 UTC
README
Yii2 Callback Module
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ignatenkovnikita/yii2-callback "*"
or add
"ignatenkovnikita/yii2-callback": "*"
to the require section of your composer.json
file.
Migrations apply
./console/yii --migrationPath=vendor/ignatenkovnikita/yii2-callback/migrations/
Usage
Add to backend config
'modules' => [
'callback' => [
'class' => 'ignatenkovnikita\callback\Callback'
],
]
Add CreateAction
to frontend controller for callback url and disable for action csrf
public $enableCsrfValidation = false;
public function actions()
{
return [
'create' => [
'class' => 'ignatenkovnikita\callback\actions\CreateAction'
]
];
}