ypnos-web / cakephp-datatables

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

Nothing is drawn #1

Closed DeadKat closed 8 years ago

DeadKat commented 8 years ago

Hi @ypnos-web,

I asked you a question on the base project but indeed it was not the right place to report issues.

I have found what was not working,

my previous code :

` <? echo $this->Html->scriptBlock($this->DataTables->draw("#users")); ?>

` I thought the initDataTables function included a sort of document ready that draws when the page is rendered.

Changing the code to the following made everything work.

`

<? echo $this->Html->scriptBlock($this->DataTables->draw("#users")); ?> ` This is not really an issue but if someone is habving the same problem i think it's good to be written somewhere.

Thank you,

Stefan.