2017 © Pedro Peláez
 

library contactform-component

Nette component for sending emails from your web page

image

flame/contactform-component

Nette component for sending emails from your web page

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ContactForm Component

Nette component for sending emails from your web page, (*1)

Usage

Presenter, (*2)

class ContactPresenter extends BasePresenter
{

    /**
     * @var \Flame\Components\ContactForm\IContactFormFactory $contactFormFactory
     */
    private $contactFormFactory;

    /**
     * @param \Flame\Components\ContactForm\IContactFormFactory $contactFormFactory
     */
    public function injectContactFormFactory(\Flame\Components\ContactForm\IContactFormFactory $contactFormFactory)
    {
        $this->contactFormFactory = $contactFormFactory;
    }

    /**
     * @return Flame\Components\ContactForm\ContactForm
     */
    public function createComponentContactForm()
    {
        $form = $this->contactFormFactory->create();
        $form->setRenderer(new \Kdyby\Extension\Forms\BootstrapRenderer\BootstrapRenderer);
        $form->onSuccess[] = $this->lazyLink('default');
        return $form;
    }

}

Config, (*3)

services:
    ContactFormProcess: \Flame\Components\ContactForm\ContactFormProcess(support@email.cz)

factories:
    contactForm:
        implement: \Flame\Components\ContactForm\IContactFormFactory

The Versions

15/12 2012

dev-master

9999999-dev https://github.com/flame-org/ContactForm-Component

Nette component for sending emails from your web page

  Sources   Download

BSD-2-Clause-FreeBSD

The Requires

 

framework component simple contact nette flame jsifalda