jsemajtacka/contact-form
最新稳定版本:2.0.1
Composer 安装命令:
composer require jsemajtacka/contact-form
包简介
Simple Nette Framework extension for contact form.
README 文档
README
This is a simple Nette Framework extension for Contact Form.
Contact form consists of these fields: name, email, message. It also tracks the sentAt time and offers boolean status done for administration of (un)read messages.
Installation
Use Composer to install this extension:
$ composer reguire jsemajtacka/contact-form
Configuration
Add this to your configuration .neon file:
extensions:
contactForm: JsemAjtacka\ContactForm\DI\ContactFormExtension
contactForm:
contactFormService: Path\To\Your\Text\Block\Service\Class
template: Path\To\Your\Latte\Template
The template argument is optional.
Example of usage
BasePresenter.php:
class BasePresenter extends Nette\Application\UI\Presenter
{
#[Inject]
public ContactFormFactory $contactFormFactory;
protected function createComponentContactForm(): ContactFormControl
{
return $this->contactFormFactory->create();
}
}
@layout.latte:
{control contactForm}
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-07