Hi,
Is it possible to add chosen date in datepicker to more than one attribute in model?
Ie.
I have to columns in my database date_from, date_to. And I want user to chose a date from cjuidatepicker and add this date to mentioned above columns.
$this->widget('zii.widgets.jui.CJuiDatePicker',array(
'model'=>$model,
'language'=>'pl',
'attribute'=>'date_from, date_to', // Can JuiDatepicker add one date to two diffrent columns?
'flat'=>true,
'options'=>array(
'dateFormat'=>'yy-mm-dd',
),
'htmlOptions'=>array(
'style'=>'height:20px;'
),
));