flame/contactform-component
Composer 安装命令:
composer require flame/contactform-component
包简介
Nette component for sending emails from your web page
README 文档
README
#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(support@email.cz)
factories:
contactForm:
implement: \Flame\Components\ContactForm\IContactFormFactory
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause-FreeBSD
- 更新时间: 2012-12-15