Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

SergeR/ContactForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Contact form for CakePHP 2

##features

  • multi language
  • no tables needed
  • custom routes
  • validation

installation

  • clone github repository into your CakePHP Application plugin folder:
git clone https://github.com/patrickhafner/ContactForm-CakePHP-2.git Plugin/Contactform
  • add following code into your Config/email.php and configure:
public $contactform = array(
	    'transport' => 'Mail',
	    'from' => array('[email protected]' => 'example.com | contact form'),
	    'bcc' => '[email protected]',
	    'charset' => 'utf-8',
	    'headerCharset' => 'utf-8',
	);
  • if you'd like to use an existing email configuration, please change Controller/ContactformController.php:
$email->config('YOURCONFIG_IN_EMAIL_PHP');
  • add following code in {APP_DIR}/Config/bootstrap.php
CakePlugin::load('Contactform', array('routes' => true));

or use this code to load all plugins, located in your application

CakePlugin::loadAll(); // Loads all plugins at once

About

simple contact form for CakePHP 2.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 83.0%
  • CSS 17.0%