luyadev / luya-newsletter2go
A LUYA library for newsletter2go service.
Installs: 676
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:luya-extension
Requires (Dev)
- luyadev/luya-testsuite: ^1.0
This package is auto-updated.
Last update: 2024-11-06 21:00:46 UTC
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(); ?>