alexbridge / symfony-bundle-contact
Bundle for Symfony 2 with a general contact form for your website
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- sensio/framework-extra-bundle: ~3.0,>=3.0.2
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2025-02-01 22:08:30 UTC
README
Bundle for Symfony 2 with a generic contact form for your website.
Fields:
- Name
- Subject
- Message
Installation:
-
composer require alexbridge/symfony-bundle-contact
-
Enable Bundle
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Alexo\ContactBundle\ContactBundle(), ); }
-
Register routes
// app/config/routing.yml contact: resource: "@ContactBundle/Controller/" type: annotation prefix: /contact
Configuration:
contact:
# an array email addresses to receive contact messages
receiver_emails: []
Routes:
- add
contact
route to your views and route generation - access
/contact
uri to see contact form