ignatenkovnikita/yii2-callback

Yii2 Callback Module

dev-master 2020-09-20 10:49 UTC

This package is auto-updated.

Last update: 2024-12-20 20:29:26 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'
            ]
        ];
    }