my ajax doesnt send sEcho to PHP
my ajax doesnt send sEcho to PHP
![andy_](https://secure.gravatar.com/avatar/2c52424c919021dd8f630602db9b85f3/?default=https%3A%2F%2Fvanillicon.com%2F2c52424c919021dd8f630602db9b85f3_200.png&rating=g&size=120)
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?