Count rows Symfony 5
Count rows Symfony 5

Hi,
How can I count all rows in datatable on Symfony 5 ?
Can I retrieve this info from de controller or from js script ?
My JS looks like :
$('#events').initDataTables({{ datatable_settings(datatable) }}, {
searching: true,
ordering: false
});
Thank you
This discussion has been closed.
Answers
I'm not familiar with Symphony 5 but the
page.info()
or therows()
combined withcount()
can be used to get the row count.Kevin