Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.0.2beta
|
MIT license |
1.0.2beta
|
03/01/2009 |
|
1.0.1beta
|
MIT license |
1.0.0beta
|
03/01/2009 |
|
1.0.0beta
|
MIT license |
1.0.0beta
|
03/01/2009 |
| Name |
Channel |
Version |
| dwCryptPlugin |
pear.symfony-project.com |
1.0.1-1.0.1 |
| sfProtoculousPlugin |
plugins.symfony-project.org |
- |
Changelog for release 1.0.1 - 03/01/2009
- Victorien L.: Fix installation error (wrong channel for dwCryptPlugin)
Other releases
Release 1.0.2 - 03/01/2009
- Victorien L.: Fix installation2
Release 1.0.1 - 03/01/2009
- Victorien L.: Fix installation error (wrong channel for dwCryptPlugin)
Release 1.0.0 - 03/01/2009
- Victorien L.: First release
sfFabulous Plugin - Form Ajax Binder for protoculous
The sfFabulousPlugin is a symfony plugin that provides an ajax validation mecanism for the new sfForm (symfony 1.1 and 1.2).
This plugin comes with:
- A generic method to Dispatch, Bind & Valid forms and extract the errors
- A piece of javascript/css to handle the JSON response and interact with the form
- A helper to provide a Quick & easy integration
Installation
Install the plugin
symfony plugin-install http://plugins.symfony-project.com/sfFabulousPlugin
Enable the module in your settings.yml
all:
.settings:
enabled_modules: [default, ..., sfFabulous]
Make the helper as standard in your settings.yml (optional, in case you want to use it anywhere)
all:
.settings:
standard_helpers: [I18N, ..., Fabulous]
Regenerate relative symbolic links in the web/ directory (for web elements such as JS and CSS).
symfony plugin:publish-assets
Clear your cache
symfony cc
Making it work!
Making the plugin work, is easy as:
<?php echo fabulous_form_tag(url_for('@somewhere'), $html_options = array(), $form, $options_fabulous = array()); ?>
The helper use the standard $form->renderFormTag(). All you need is to had two extra params $form wich is your form object and a special options array $options_fabulous :
* 'show_required_field' : show required fields (default: false)
* 'show_masks' : bind fields & masks (default: false)
* 'complete_func' : javascript function to execute if form is valid (default: this.form.submit()). For example, if you want to submit your form via ajax: array('complete_func'=>'new Ajax.Updater("container...)
Dependencies
Form Ajax Binder for protoculous (sfFabulous) needs:
- sfProtoculousPlugin (bundle by default with sf1.2). Any other prototype (>1.6.XX) / scriptaculous (>1.8.XX) installation is fine.
- An dwCryptPlugin. Used to crypt form informations.
Features
- Auto focus the first error field
- Auto enabling/disabling when submiting the form
- Auto transform the text label for required fields (ie. Username* / Username (require))
- Insert a div error and change the class of the error field (ie red border input)
- Errors sent by HTTP headers (using X-JSON)
- Errors sent with the json format (light => performances) and auto eval by Prototype
- Multi states submit buttons
Demo
I'll post a link soon.
Todo