/ Published in: PHP
Zend_Form_Element isValidreview
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function isValid($value, $context = null) { $this->setValue($value); $value = $this->getValue(); if ((('' === $value) || (null === $value)) && !$this->isRequired() && $this->getAllowEmpty() ) { return true; } //.... }