$this->widget('zii.widgets.jui.CJuiDatePicker', array( 'model' => $deadline, 'attribute' => 'end_time', 'flat' => true, ));
My form loads normally, and CJuidatepicker shows current date.
But when I make a mistake in form and validation occurs, after showing error summary my CJuiddatepicker shows last possible date!
I understand it is because my model attribute $deadline->end_time is not set - because of the errors, and it is
How to make it 'remember' which date user has selected, even if he entered other information incorrectly?
Maybe date validators? Can I make it return an error if selected day is in past? I only need future dates to be entered...