[Solar-talk] Solar_Form required element support
Pierre Oztel
pierre.oztel at gmail.com
Mon Jul 16 16:26:03 CDT 2007
Hi
I was reading the Form class and it seems that the 'require' key of
Solar_Form::elements is not used.
I think that a required element cannot be blank so i added these lines to
the setElement() method:
//require not blank
if(array_key_exists('require', $info) && $info['require'] == true) {
$this->addValid($name, 'notBlank');
}
That should automatically add a Solar_Valid::notBlank(), instead of letting
the user manipulate the elements.
What do you think ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20070716/2bfc255e/attachment.html
More information about the Solar-talk
mailing list