heliopsis / ezforms-bundle
Symfony forms handling within eZPublish contents
Installs: 2 708
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 11
Forks: 12
Open Issues: 2
Type:symfony-bundle
Requires
- ezsystems/ezpublish-kernel: >=5.3
- symfony/form: >=2.3
Requires (Dev)
- phpunit/phpunit: 4.6.*
- swiftmailer/swiftmailer: *
- symfony/templating: >=2.3
- symfony/translation: >=2.3
Suggests
- swiftmailer/swiftmailer: Used by Swift Mailer Handlers to email submitted data
- symfony/templating: Used by Swift Mailer Handlers to render emails
- symfony/translation: Used by Swift Mailer Handlers to translate email subject
This package is not auto-updated.
Last update: 2024-12-21 17:43:21 UTC
README
This bundle provides a flexible way to associate Symfony forms to eZPublish contents.
Features:
- Form controller extending eZPublish's view controller
- Facade pattern for flexible form handling
- Separate interfaces for form instanciation, data handling and response generation
- Abstract classes for content related data handling
- Unit tests
NB: this bundle does not provide out of the box forms in eZPublish, it rather gives you tools to easily define custom forms and leverage eZPublish's content tree to access or configure those forms.
License
This bundle is released under GPL2
Installation
1. Download bundle using composer
{ require: { "heliopsis/ezforms-bundle": "~1.2" } }
2. Enable bundle in EzPublishKernel.php
<?php // ezpublish/EzPublishKernel.php public function registerBundles() { $bundles = array( // ... new Heliopsis\eZFormsBundle\HeliopsiseZFormsBundle(), ); }
3. Configure providers
# ezpublish/config/config.yml heliopsis_ezforms: providers: form: acme_forms.custom_form_provider handler: acme_forms.custom_handler_provider
NB: see Usage section for service definitions
4. Use form controller to render your locations views
# ezpublish/config/ezpublish.yml ezpublish: system: frontend_group: location_view: full: form: controller: heliopsis_ezforms.controller:formAction template: AcmeDesignBundle:full:form.html.twig match: Identifier\ContentType: 'form' confirm: template: AcmeDesignBundle:confirm:form.html.twig match: Identifier\ContentType: 'form'
Documentation
Detailed documentation is available in the Resources/doc folder When upgrading, don't forget to take a look at the notes on backwards compatibility