New Commit 324ae60b390d91e85b0123b34da7253a18119b6a - Add support for closures / lambdas as per-field validation methods (pluf)

0 views
Skip to first unread message

no-r...@ceondo.com

unread,
May 29, 2011, 8:55:23 PM5/29/11
to pluf-u...@googlegroups.com
Hello,

A new commit has been created:

Add support for closures / lambdas as per-field validation methods

Commit: 324ae60b390d91e85b0123b34da7253a18119b6a
Project: Pluf Framework
Created by: Thomas Keller
Created at: 2011-05-30 02:49:30

Content:

The syntax for closures is

$this->clean_foo = function($form) {
// process $form->cleaned_data['foo']
}

This eases the handling of dynamic form fields somewhat that all
share some basic validation code, but can occur multiple times.

--
Commit details: http://projects.ceondo.com/p/pluf/source/commit/324ae60b390d91e85b0123b34da7253a18119b6a/


Reply all
Reply to author
Forward
0 new messages