Skip to content

IT-Yakutia/yii2-callback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Callback form service for yii2

Callback form server for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist it-yakutia/yii2-callback "*"

or add

"it-yakutia/yii2-callback": "*"

to the require section of your composer.json file.

Add migration path in your console config file:

'controllerMap' => [
    ...
    'migrate' => [
    ...
        'migrationPath' => [
            ...
            '@vendor/it-yakutia/yii2-callback/src/migrations',
        ],
    ],
]

Usage

Once the extension is installed, simply use it in your code by :

<?= Url::toRoute(['/callback/back/index']); ?>

Add RBAC roles:

callback

For front use views params templates:

<?php
return [
    // ...
    'custom_view_for_modules' => [
        // ...
        'callback_front' => [
            'create' => '@frontend/themes/basic/views/callback/create',
            '_form' => '@frontend/themes/basic/views/callback/_form',
            'thanks' => '@frontend/themes/basic/views/callback/thanks'
        ]
    ],
];

And add link:

<?= Url::toRoute(['/callback/front/create']); ?>

About

Yii2 callback form and admin page

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages