it-yakutia / yii2-callback
Callback from for yii2
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- uraankhayayaal/yii2-materializecomponents: ~1.0.1
- yiisoft/yii2: ~2.0.0
README
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']); ?>