Hello,
I am trying to pass parameters to a controller with the name value of the date picked. Can someone please point me to the right way to do this. I have indicated the line on the code with HERE
$model=schedule::model();
$this->widget(‘zii.widgets.jui.CJuiDatePicker’, array(
'model' => $model,
'attribute' => 'schedule_time',
'options' => array(
),
'htmlOptions' => array(
'size' => '10', // textField size
'ajax' => array(
'type' => 'POST',
'date' => $model->schedule_time,
'url' => $this->createUrl('dispatcher/AjaxDispatcher', array('value'=> '')), // <-- HERE
'success' =>'function(data) { alert(data) }',
'processData' => false,
),
'maxlength' => '10', // textField maxlength
'onChange' => 'get_schedule_date(this)',
),
));
Appreciate any input.