asbsoft / yii2module-contactform_3_170124
Simple Yii2 contact form. Template of standard module collected in vendor place.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-module
Requires
- php: >=5.4
- asbsoft/yii2-common_2_170212: ~2.07
- yiisoft/yii2: ~2.0.10
This package is not auto-updated.
Last update: 2025-03-11 06:42:14 UTC
README
This is demo template of module collected in common vendor place.
You can add this module to your system (advanced Yii2-template) by separate adding BackendModule and FrontendModule. In basic Yii2-template you have to add this modules together.
Otherwise you can use single CommonModule for this purpose.
In your application configs must be some tunes:
- config/params.php: 'adminPath' => 'admin', // non-empty string for BASIC Yii application template 'adminPath' => '', // empty string for backend of ADVANCED Yii application template
- in bootstrap: AdminController::$adminPath = Yii::$app->params['adminPath']; Default is AdminController::$adminPath = 'admin'.
Now only one such module or its' successor can add to system.
Contact form can be used inside other web page by AJAX, for example:
<div id="<?= $contactFormTagId ?>"> <?= Yii::$app->runAction("/{$contactsModuleUid}/main/form", [ 'ajaxReceiver' => $contactFormTagId, ]) ?> </div>