bmidget/kohana-formo — Issue #146: Custom driver - two fields for one (date & time)
Author: phobia
Created: 2011-10-19 15:20:27+00:00
State: open

Hi :)

I'm trying to understand using Formo to create custom fields, to hopefully be able to contribute some drivers later on.

Now, I want to create a "datetime" driver that takes one unix timestamp column in DB, and creates two fields for it; one for date, one for time.

The fields would need to be validated as valid date and time, and then on save the field should be merged together to create a unix timestamp again.

Is this "two fields for one"-thing possible with Formo, and if so, do you have any thoughts on how it would be best to go about solving this?