title: CJuiDatePicker, YII Date Picker required
body: <p>is there a way to validate CJuiDatePicker as a required field?</p>
  
  <pre><code>&lt;?php     
          $this-&gt;widget('zii.widgets.jui.CJuiDatePicker',array(
                                      'model'=&gt;$model,
                                      'attribute'=&gt;'bdate',
                                      'options'=&gt;array( 
                                                  'showAnim'=&gt;'fadeIn', 
                                                  'dateFormat'=&gt;'mm/dd/yy',
                                                  'changeMonth'=&gt;true,
                                                  'changeYear'=&gt;true,
                                                  'minDate'=&gt;'01/01/1900',
                                                  'yearRange' =&gt; '-200:+0',
                                                  'maxDate'=&gt;'0',
                                                  ),
                                      'htmlOptions'=&gt;array('readonly' =&gt; true, 'class' =&gt; "form-control", 'required'=&gt; 'true', 'value'=&gt;isset($_SESSION["bdate"])?$_SESSION["bdate"]:'')
                              ));
                          ?&gt;
  </code></pre>
  
  <p>Thanks!</p>