Adds a datefield to the form
public addDate ( string $name, mixed $value = null, string $type = null, integer $date = null, integer $date2 = null, string $class = null, string $classError = null ) : |
||
$name | string | Name of the element. |
$value | mixed | The value for the element. |
$type | string | The type (from, till, range) of the datepicker. |
$date | integer | The date to use. |
$date2 | integer | The second date for a rangepicker. |
$class | string | Class(es) that have to be applied on the element. |
$classError | string | Class(es) that have to be applied when an error occurs on the element. |
return |