gilleswittenberg / contact-form
CakePHP ContactForm Plugin
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2025-04-21 17:15:07 UTC
README
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 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