Hello everyone,

I have a form with two date fields. One startdate and one enddate. I want to
make sure, the end date is not before the startdate.
I am trying to create my own validator. Now i based my validator on this
tutorial:
http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/
Here is my code: http://pastebin.com/f20aafd32  it's not yet ready.
My problem is at line 52 where the value of  $this->_fieldsToCompare is
empty all the time.
I also have problems in comparing the dates.

Kan someone please help me along?

<http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/>

Kind regards,

J. Sanders

Reply via email to