Contact Module

Purpose

Provides a public contact form endpoint with submission handling.

Enablement Key

  • modules.contact

Key Features

  • Contact form page
  • Form submission endpoint
  • Mail integration support (project-config dependent)

Primary Routes

  • GET /contact
  • POST /contact
  • GET / (only when default_module is contact)

Important Files

  • public_html/modules/Contact/routes.php
  • public_html/modules/Contact/controllers/ContactFormController.php
  • public_html/modules/Contact/models/Contact.php
  • public_html/modules/Contact/views/contact_form.php
  • public_html/modules/Contact/README.md

Notes

  • Ensure SMTP/mail config is set before production use.
  • Route guard currently checks module presence rather than explicit enabled key.