BWSnippet

Yii Bootstrap Date Widget

Yii Bootstrap Date Widget

How to save a date to model using the Date Widget CJuiDatePicker

The 'attribute' property is the key. Not name.



		$this->widget('zii.widgets.jui.CJuiDatePicker', array(
		'model'=>$model,
                'attribute'=>'date',
		    'options'=>array(
		        'showAnim'=>'fold',
		    ),
		    'htmlOptions'=>array(
		        'style'=>'height:20px;'
		    ),
		));

Tags

Yii Bootstrap Date Widget