Showing today's date in CJuiDatePicker


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',





            )) ?&gt;

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


Wwhat should I do?


edit your htmlOptions to:



    //international format


    //brazilian format