Controllers - ContactwebformController
Description
The ContactwebformController is responsible for creating the `contact page` and processing the data submitted through the contact form.
Properties
- msg
- Instance of MessageBase
Methods
- index
- Responds with the contact form page by rendering templates/common/form.web-email.html
- process
- Contact form's action. Validates the data received using the MessageBase model. On success, sends an e-mail to the address defined in the configuration file. Redirects to "success". On failure, responds with an error message.
- success
- Responds with a success message by rendering templates/common/error.html