asbsoft/yii2module-contactform_3_170124
Composer 安装命令:
composer require asbsoft/yii2module-contactform_3_170124
包简介
Simple Yii2 contact form. Template of standard module collected in vendor place.
关键字:
README 文档
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>
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-11-17