I'm trying to follow this tutorial: link
But it's giving the error when I look for something, or I click on pagination:
DataTables warning: table id = example - Invalid JSON response. For more information about this error, please see link