Override widgetFactory setting

I use a widgetFactory component for default datepicker settings:

'widgetFactory' => array(

			'widgets' => array(

				'CJuiDatePicker' => array(

                	'themeUrl' => 'http://localhost/x/static/css/jqueryui',

					'theme' => 'tsdate',











When I try to override this in a particular instance as such…

$this->widget('zii.widgets.jui.CJuiDatePicker', array(


			// additional javascript options for the date picker plugin


			'options' => array(

				'showOn' => 'both',

				'buttonImage' => Yii::app()->params['staticUrl'].'/img/calendar-color.png',

				'buttonImageOnly' => false,

				'dateFormat' => 'dd/M yy',

            	'minDate' => '-3m',

            	'maxDate' => '0',





I don’t get minDate or maxDate to override the default settings.

What am I doing wrong?

Can’t help you much… but I just tested this to be sure… and it works for me… so it should be something in your code…