"Showing 1 to 10 of 20 entries" when there are more than 20 entries

"Showing 1 to 10 of 20 entries" when there are more than 20 entries

lesleylesley Posts: 1Questions: 1Answers: 0
edited May 9 in DataTables

Description of problem:
I am using the below code to have the datatable working in my website. But however, when I am trying to load the table, It only shows "Showing 1 to 10 of 20 entries" at the bottom left when there are more than 20 entries. Could anyone please help me with that please? Thank you.

<?php
echo $this->Html->css('//cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css',['block'=>true]);
echo $this->Html->script('//cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js',['block'=>true]);?>
<script>
    $(document).ready(function() {
        $('#myTable').DataTable(
        );
    });
</script>

Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide

Answers

Sign In or Register to comment.