AliHichem / AliDatatableBundle

Symfony2 Ajax Datagrid Bundle for doctrine2 entities
MIT License
112 stars 71 forks source link

Uncaught ReferenceError: $ is not defined - Script tag #102

Closed jjamaral closed 9 years ago

jjamaral commented 9 years ago

Hi!

First of all, congratz for this bundle, its pretty cool! However, i'm having troubles when initialise the table. I think its because generated script tag and code was included before jquery file declaration.

I mean:

...

How can I include this code only before jquery and jquery.dataTables.js declaration? And its cool if this code was done in a single file, instead directly on script tag. Is it possible?

Thanks in advance.

Best regards, João Amaral

AliHichem commented 9 years ago

Are you you did a copy/paste of the code you're having problems with ? I only see "..."

AliHichem commented 9 years ago

I'm closing this issue as the v2 is published and this problem should not happen anymore: now all the datatable configuration js code is automatically groupped, minified and moved to the bottom of the element (exactly like the symfony profiler). Hope you like it !