This the code I am using to submit form via ajax.
<?$data = $this->Js->get('#form_emp')->serializeForm(
array(
'isForm' => true,
'inline' => true)
);?>
<?php echo $this->Js->submit('submit.png',
array(
'url' =>'/employees/update_details',
'update' => '#update_here',
'data'=>$data,
'async' => false,
'dataExpression'=>true,
'method' => 'POST'
));
echo $this->Form->end();
When I am doing a debug on the action post data is displayed as empty. How to fix it?