piedweb/contact-bundle

This package is abandoned and no longer maintained. The author suggests using the pushword/core package instead.

Contact Bundle for PiedWebCMS

v0.0.1 2018-11-16 12:01 UTC

This package is auto-updated.

Last update: 2022-02-24 23:59:37 UTC


README

theme devoluix bootstrap 4

Contact Bundle

Add a contact form via fetch (ajax) to your app.

Initially dev to be use with PiedWeb CMS.

demo contact bundle form

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)