Validate two fields in my fuel module

edited February 2011 in Modules

I have a little problem. I have a fuel module with two datetimes fields. The fields are: "date_start" and "date_end". I wish check that "date_end" is greater than or equal that "date_start". I think that I must do with the "on_before_validate" hook and add a validation with "add_validation", but I am trying but I can not do it. Can you help me please?

Thank you.


  • edited 12:42PM
    Hello, I have fix my problem, I have look for in the "validator_helper" and I found a function that solved my problem.

Sign In or Register to comment.