Skip to content

Onasusweb/ContactForm-CakePHP-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published