Hello.
I need to display in my CJuiDatePicker component the today’s date always that the _form is loaded.
The code below is how I’m currently using, but this way bring me a empty CJuiDatePicker component.
<div class="row">
<?php echo $form->labelEx($model,'Data'); ?>
<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
'model' => $model,
'attribute' => 'Data',
'language' => 'pt',
'options' => array(
'showAnim' => 'clip',
'changeMonth' => 'true',
'changeYear' => 'true',
'showButtonPanel' => 'true',
'showOn' => "button",
'buttonImage' => "images/calendar.gif",
'buttonImageOnly' => 'true',
'yearRange'=> '2011:2100',
),
'htmlOptions'=>array(
'readOnly'=>true
),
)) ?>
<?php echo $form->error($model,'Data'); ?>
</div>
Wwhat should I do?