my ajax doesnt send sEcho to PHP
my ajax doesnt send sEcho to PHP
Hi there,
at first i am very excited about using datatables and i find it as really great feature in my application. Problem is i cant make it work with my Symfony2 because i dont get sEcho parameter in the controller processing data. Could you tell me what i do wrong?
my ajax call:
$(function(){
$('#sequences_datatable').dataTable({
"processing": true,
"serverSide": true,
'ajax' : '{{path('my_action_route')}}',
});
For server-side I use the code dropped in some of forum threads: https://gist.github.com/Slauta/3175282
It causes 500 cause of no sEcho in $_GET parameters. When i comment line:
"sEcho" => intval($get['sEcho']),
My table gets rendered but not working well - paging, searching, ordering doesnt work and table comes with all (4000 :P) results.
Have anybody had the same problem?