Yii Cjuidatepicker Options Not Displaying

Hi Guys,

I am new to yii. I am using CJuiDatePicker for Hire Date so I just put the following code:


<?php

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

			'model' => $model,

			'attribute' => 'date_from',

			'themeUrl'=>Yii::app()->baseUrl.'/js/themes/',

			'theme'=>'redmond',

			'cssFile'=>'jquery-ui.css',

			'name'=>'date_from',

		'options'=>array(

			// 'dateFormat' => Yii::app()->params['date_format'],

			'dateFormat'=>'yy-mm-dd',

			'showAnim'=>'fold',

			'yearRange'=>'-79:+0',

			'changeMonth'=>'true', 

			'changeYear'=>'true',

		),

		'htmlOptions'=>array('size'=>20,

			'maxlength'=>20, 

			'height'=> 10, 

			'class'=>'in-area1', 

			'placeholder'=>'YYYY-MM-DD',

		),

	));

?>

The problem is that after inserting above code, a new textbox appear on the page.

But the CJuiDatePicker will not popup…

I am using the CJuiDatePicker with in the CJuiDialog, is there anything wrong? please reply . :(

there is any changes in controller or in model…?

thanx in advance…

check this Blog

thanx … its work… :)