2017 © Pedro Peláez
 

symfony-bundle contact-bundle

Symfony Contact Bundle by SOLID-kiss

image

skcms/contact-bundle

Symfony Contact Bundle by SOLID-kiss

  • Thursday, April 19, 2018
  • by kokmok
  • Repository
  • 1 Watchers
  • 0 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SKCMS-Contact

This package is currently under development, more documentation and features will come soon., (*1)

The Contact bundle of SKCMS for Symfony2

Installation

Install skcms:core-bundle, (*2)

launch symfony command to create message entity., (*3)

php app/console skcms:generate:entity

The base message entity already contains : date status email name subject message phone fax, (*4)

in config.yml set those options, (*5)

skcms_admin:
    modules:
        contact:
            enabled: true
            messageEntity:
                name: #name of your created message entity
                beautyName:  #name you want to see in the menu
                bundle: #bundle name (by ex : SKCMSContact )
                class: #the class name with full namespace
                form: #the class name with full namespace
                listProperties:  #those are the proerties you want to see in the contact message list of your admin panel (date and status are automaticly displayed)
                    email:
                        dataName: 'email'
                        beautyName: 'E-mail'
                        type: 'string'

Usage

The form is globally accessible in twig with the var "contactForm" in any page.

To display the form you just have to write, (*6)

{{contactForm|raw}}

The submission and persistence of the message is full automatic., (*7)

Override form view

Just override the bundle, and create your own view in Resources\views\Form\contact-form-content.html.twig, (*8)

The Versions

19/04 2018

dev-master

9999999-dev

Symfony Contact Bundle by SOLID-kiss

  Sources   Download

GPL-3.0+

The Requires