PHP code example of geniv / nette-newsletter

1. Go to this page and download the library: Download geniv/nette-newsletter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

geniv / nette-newsletter example snippets


protected function createComponentNewsletterForm(NewsletterForm $newsletterForm)
{
    //$mailerLiteForm->setTemplatePath(__DIR__ . '/templates/NewsletterForm.latte');
    $newsletterForm->onSuccess[] = function (array $values) {
        $this->flashMessage('Email has been save!', 'success');
        $this->redirect('this');
    };
    return $newsletterForm;
}
json
"php": ">=7.0.0",
"nette/nette": ">=2.4.0",
"dibi/dibi": ">=3.0.0",
"geniv/nette-locale": ">=1.0.0",
"geniv/nette-general-form": ">=1.0.0"