ypnos-web / cakephp-datatables

CakePHP3 Plugin for DataTables plug-in for jQuery
MIT License
27 stars 24 forks source link

Uncaught ReferenceError: dt is not defined #11

Closed Neb19 closed 8 years ago

Neb19 commented 8 years ago

Hello Ypnos.

I tried to implement your fork on my cakephp application but i have a problem with Javascript.

In fault Uncaught ReferenceError: dt is not defined in my browser console. I checked several time before to post an issue. JS files are load correctly and in a good order. I'm unabled to correct this problem.

do you know what it is?

Thanks you !

ypnos-web commented 8 years ago

dt is defined here: https://github.com/ypnos-web/cakephp-datatables/blob/master/webroot/js/cakephp.dataTables.js#L3

Make sure cakephp.dataTables.js is included correctly (early enough).

Neb19 commented 8 years ago

Thanks you for your response. I confirm you that all files is well imported. I've checked where was defined 'dt' before to post an issue. In addition the scripts are imported in a correct order.

ypnos-web commented 8 years ago

Right now I really have no idea how this could fail. I suggest you provide a minimum self-contained example so that I can try this.

As a minimum I suggest you upload the page source ("View page source" in your browser) and the whole error message (with line where it occurs) to some pastebin.

Thanks.