Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 728 Bytes

basic-usage.md

File metadata and controls

33 lines (28 loc) · 728 Bytes

Basic usage

Frontend

Functionality to subscribe

  1. Configure module in frontend part of your application

    'modules' => [
        // ...
        'newsletter' \ymaker\newsletter\frontend\Module::class,
    ],
  2. Call widget for rendering of newsletter form

    // view file
    <?= \ymaker\newsletter\frontend\widgets\NewsletterForm::widget() ?>

Backend

Functionality for managing users contacts

  1. Configure module in backend part of your application
    'modules' => [
        // ...
        'newsletter' => \ymaker\newsletter\backend\Module::class,
    ],
  2. And follow this route: http://your-app.back.dev/newsletter/default/list