Showing today's date in CJuiDatePicker

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">

	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'Data'); ?&gt;


            &lt;?php &#036;form-&gt;widget('zii.widgets.jui.CJuiDatePicker', array(


                'model' =&gt; &#036;model,


                'attribute' =&gt; 'Data',


                'language' =&gt; 'pt',





                'options' =&gt; array(


                    'showAnim' =&gt; 'clip',


                    'changeMonth' =&gt; 'true',


                    'changeYear' =&gt; 'true',


                    'showButtonPanel' =&gt; 'true',


                    'showOn' =&gt; &quot;button&quot;,


                    'buttonImage' =&gt; &quot;images/calendar.gif&quot;,


                    'buttonImageOnly' =&gt; 'true',


                    'yearRange'=&gt; '2011:2100',





                ),


                'htmlOptions'=&gt;array(


                    'readOnly'=&gt;true


                ),


            )) ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'Data'); ?&gt;


&lt;/div&gt;

Wwhat should I do?

raphael.pradoo,

edit your htmlOptions to:




'htmlOptions'=>array(

    'readOnly'=>true

    //international format

    'value'=>CTimestamp::formatDate('Y-m-d'),

    //brazilian format

    'value'=>CTimestamp::formatDate('d/m/Y'),

)