Closed InternalServerError closed 8 years ago
Hey !
Just add an id
in the datatable definition in your Twig template, like you can see below :
{{ datatable({
'id' : 'invoice'
'js' : {
'ajax' : path('invoices_datatables')
}
})
}}
Hi,
Thanks for your answer. I've already tried it, without no success. However, with adding ->setHasAction(false) in controller, that seems to solve the problem :)
Ok, if you have time, you can maybe try to reproduce your error on this repo https://github.com/waldo2188/datatable-sandbox and share the result. If you do, I will try to solve this problem.
Hi, I've an issue when implementing the datatable bundle. I've followed the doc, set up the bundle with composer etc.
In my controller :
In my twig :
When I'm accessing to this view, I've the following error :
An exception has been thrown during the rendering of a template ("No instance found for datatable, you should set a datatable id in your action with "setDatatableId" using the id from your view")
When I'm trying to query the url action directly, I've a correct JSON :
Could you help me for doing it work please ?
Thanks by advance,
Regards,