CakePHP 2.3+ ContactForm Plugin
Installation
[Composer]
Add the following to composer.json
"require": {
"gilleswittenberg/contact-form": "dev-master"
}[Manual]
- Download http://github.com/gilleswittenberg/CakePHP_ContactForm/zipball/master
- Unzip the downloaded ZIP file.
- Copy the resulting folder to
APP_DIR/Plugin - 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 ContactFormCreate schema
Run cake shell schema
cake schema create --plugin ContactFormUsage
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