gilleswittenberg/contact-form

CakePHP ContactForm Plugin

dev-master 2013-05-28 08:02 UTC

This package is not auto-updated.

Last update: 2024-10-07 14:48:20 UTC


README

Installation

[Composer]

Add the following to composer.json

"require": {
	"gilleswittenberg/contact-form": "dev-master"
}

[Manual]

  1. Download http://github.com/gilleswittenberg/CakePHP_ContactForm/zipball/master
  2. Unzip the downloaded ZIP file.
  3. Copy the resulting folder to APP_DIR/Plugin
  4. Rename the folder you just copied to ContactForm

[GIT Submodule]

In your APP_DIR type:

git submodule add git://github.com/gilleswittenberg/CakePHP_ContactForm.git Plugin/ContactForm
git submodule init
git submodule update

[GIT Clone]

In APP_DIR/Plugin directory type

git clone git://github.com/gilleswittenberg/CakePHP_ContactForm.git ContactForm

Create schema

Run cake shell schema

cake schema create --plugin ContactForm

Usage

In APP_DIR/Config/bootstrap.php add:

CakePlugin::load('ContactForm', array('bootstrap' => true, 'routes' => true));

Configure::write('ContactForm', array(
	'mailTo' => 'mail@example.com',
	'sendInControllerAction' => 'true'
));

##ToDo

  • Configurable validation for fields
  • Configurable flash messages
  • SendMailShell
  • Captcha
  • Clear Session from send mail
  • Disable form after submit (Javascript)
  • Allow for multiple different forms per application