Skip to content
Snippets Groups Projects
Commit 067aa0fd authored by pbarroca's avatar pbarroca
Browse files

ZendAfi: le form element url a par défaut le validateur adhoc

parent 9535e442
Branches
Tags
No related merge requests found
......@@ -25,6 +25,11 @@ class ZendAfi_Form_Element_Url extends Zend_Form_Element_Text {
* @var string
*/
public $helper = 'formUrl';
public function init() {
$this->addValidator(new ZendAfi_Validate_Url());
}
}
?>
\ No newline at end of file
......@@ -31,7 +31,7 @@ class ZendAfi_Form_VignetteNotice extends ZendAfi_Form {
'size' => 80,
'required' => true,
'placeholder' => 'ex: http://upload.wikimedia.org/wikipedia/en/2/2c/Harry_Potter_and_the_Philosopher%27s_Stone.jpg',
'validators' => ['url', 'vignetteUrl']])
'validators' => ['vignetteUrl']])
->addElement('submit',
'envoyer',
['label' => 'Envoyer']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment