Hi,
I am using ajaxLink. But it is displaying empty value.My view file code is
array(
'name'=>'ordering',
'type'=>'html',
'value' => 'CHtml::ajaxLink(
"Show",
Yii::app()->controller->createUrl("answers/reorder"),
array(
"type" => "POST",
"data"=>array("oid"=>$data->ordering,"direction"=>"down")
),
)',
'htmlOptions'=>array('width'=>'40px'),
),
My controller is
public function actionReorder()
{
if (Yii::app()->request->isAjaxRequest) {
echo $_POST['oid'];
}
Yii::app()->end();
}
I have tried with
'type'=>'raw'
it is also not working. Could you please help me.