I am try to pick month and year using this code i got error

i am try to pick month and year using this code i got error

	<?php $ui->widget('DatePicker', array(

                                        'model'=>$model,
                                    
                                        'attribute'=>'attribute',
                                    
                                        'options'=>array(
                                    
                                            'dateFormat'=>'mm.yy',
                                    
                                            'minDate'=>0,
                                    
                                        ),
                                    
                                    )); ?>

error

throw new CException(Yii::t(‘zii’,’{class} must specify “model” and “attribute” or “name” property values.’,array(’{class}’=>get_class($this))));
55
56 if(($id=$this->getId(false))===null)
57 {

<?php
$ui->widget('DatePicker', array(
    'model'=>$model, 
//    'attribute'=>'attribute',
    'attribute'=>'date', // or 'year_month'? I don't know

You have to specify an existing attribute (‘date’, ‘year_month’, ‘ym’, … etc. I don’t know for sure) to the widget.