2010-01-06

New form rules

Important! All Kohana-related posts are now at http://kohana.lillem4n.se.

The module formrules is updated with two new methods: futureTimeStamp() and pastTimeStamp().

This can simply be passed in a form validation to check a string for both validation to strtotime() and so it is either in the future or in the past. Example:

$post->add_rules('someFormField', 'formrules::futureTimeStamp')


This is an update to this post.

Hashes: #kohana form rules module #kohana module #kohana #form validation #php

No comments:

Post a Comment