piedweb / contact-bundle
Contact Bundle for PiedWebCMS
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- piedweb/cms-bundle: dev-master
This package is auto-updated.
Last update: 2022-02-24 23:59:37 UTC
README
Contact Bundle
Add a contact form via fetch (ajax) to your app.
Initially dev to be use with PiedWeb CMS.
Installation
Via Packagist :
# Get the Bundle
composer require piedweb/contact-bundle
# Add the route to your Routes:
contact:
resource: '@PiedWebContactBundle/Resources/config/routes/contact.yaml'
Usage
You can use it as is and include it in your Page with two manners :
# Load form in ajax <div data-sky="{{ path('piedweb_cms_contact') }}"></div> # Render form in Controller {{ render(controller('PiedWeb\\ContactBundle\\Controller\\ContactController::show')) }}
Or you can...
... customize everything by overriding any part of the bundle (especially src/Resources/views/contact/
)
TODO
- test
Contributors
Check coding standard before to commit :
php-cs-fixer fix src --rules=@Symfony --verbose
php-cs-fixer fix src --rules='{"array_syntax": {"syntax": "short"}}' --verbose
License
MIT (see the LICENSE file for details)