luyadev/luya-newsletter2go
Composer 安装命令:
composer require luyadev/luya-newsletter2go
包简介
A LUYA library for newsletter2go service.
README 文档
README
LUYA Newsletter2Go
A subscription widget and helper methods to work with newsletter2go.com serivce.
Installation
Install the extension through composer:
composer require luyadev/luya-newsletter2go
Usage
<?php $widget = SubscribeFormWidget::begin([ 'accessToken' => 123, 'listId' => 123, 'username' => '...', 'password' => '...', ]) ?> <?php if ($widget->isSubscribed): ?> <div class="alert alert-success">Thanks, your email address has been added to the subscription list.</div> <?php else: ?> <?php $form = ActiveForm::begin(); ?> <?= $form->field($widget->model, 'email'); ?> <?= Html::submitButton('Submit'); ?> <?php $form::end(); ?> <?php endif; ?> <?php $widget::end(); ?>
统计信息
- 总下载量: 716
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-19
