sfContactFormPlugin
1.0.6stable
for sf 1.4sf 1.3 MIT
sfContactFormPlugin
The plugin is simple and usual to websites.
I use some plugins in symfony and I know how those plugins accelerate the proccess developing a website. This is my first plugin. So I tried to do something easy and usual.

To use the plugin you need install the Swift Mailer library at http://swiftmailer.org . After downloaded the Swift package, you must extract it in lib/vendor folder of your project.
Thank
Especially for my friend Valdir (hagnat). He showed me a better way programming in Symfony
Developers
License
Copyright (c) Gaspar Teixeira
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.0.6stable
|
MIT license |
1.0.6stable
|
17/08/2010 |
|
1.0.5beta
|
MIT license |
1.0.5beta
|
17/08/2010 |
|
1.0.4beta
|
MIT license |
1.0.4beta
|
21/05/2010 |
|
1.0.3beta
|
MIT license |
1.0.3beta
|
21/05/2010 |
|
1.0.2beta
|
MIT license |
1.0.2beta
|
21/05/2010 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
1.0.6stable
|
MIT license |
1.0.6stable
|
17/08/2010 |
|
1.0.5beta
|
MIT license |
1.0.5beta
|
17/08/2010 |
|
1.0.4beta
|
MIT license |
1.0.4beta
|
21/05/2010 |
|
1.0.3beta
|
MIT license |
1.0.3beta
|
21/05/2010 |
|
1.0.2beta
|
MIT license |
1.0.2beta
|
21/05/2010 |
Changelog for release 1.0.6 - 17/08/2010
Other releases
Release 1.0.6 - 17/08/2010
Release 1.0.5 - 17/08/2010
Release 1.0.4 - 21/05/2010
Release 1.0.3 - 21/05/2010
Release 1.0.2 - 21/05/2010
sfContactFormPlugin
The plugin is simple and usual to websites.
I use some plugins in symfony and I know how those plugins accelerate the proccess developing a website. This is my first plugin. So I tried to do something easy and usual.
To use the plugin you need install the Swift Mailer library at http://swiftmailer.org . After downloaded the Swift package, you must extract it in lib/vendor/swift folder of your project.
Insallation:
Installation:
$ php symfony plugin:install --stability=beta sfContactFormPlugin
enable the plugin in project_name/config/ProjectConfiguration.class.php
$this->enablePlugins('sfContactFormPlugin');
enable the plugin module in your project app like this frontend/config/settings.yml
all:
.settings:
enabled_modules: [contact]
make the rout of contact in your project app in this way frontend/config/routing.yml
contact:
url: /contact
param: { module: contact, action: index }
configure the addressee and messages in your project app in this way frontend/config/app.yml
all:
contact_form:
## Put here your email address. This email will receive the message from contact form
email: your_email@server.com
## custom your error message
error: There is an error. Cannot be sent!
## custom your success message
notice: Your message has been sent succefull
## captcha error message
captcha: Your secret code is incorrect
## put here the absolute image path
## example: http://localhost/yourproject/web/index.php/contact/image
image_path: http://localhost/yourproject/web/index.php/contact/image
## legend your form
legend: Please, fill the fields and send us a message
## change fields labels
field_name: Your Name
field_email: Your Email
field_subject: Your Subject
field_message: Your Message
field_captcha: Security Code
button: Send Message
clear the cache
$ php symfony cc
publishing the plugin
$ php symfony plugin:publish-assets
Usage:
[url]
http://localhost/your_project/web/index.php/contact
Online test:
[url]
http://sfcontact.gasparteixeira.com.br/web/contact
To do:
You can open the contact module of plugin and customize it as you need.
- There isn't implemented the multi dispatch