Skip to content

flame-org/ContactForm-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

#ContactForm Component

Nette component for sending emails from your web page

##Usage

Presenter

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

services:
	ContactFormProcess: \Flame\Components\ContactForm\ContactFormProcess([email protected])

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

About

Nette component for sending emails from your web page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages