Server side processing with MVC
Server side processing with MVC
gaarakenpachi
Posts: 6Questions: 2Answers: 0
I'm trying to figure out how I would use server side processing within an MVC framework.
$(document).ready(function() {
$('#example').DataTable( {
"processing": true,
"serverSide": true,
"ajax": "scripts/server_processing.php"
} );
} );
How would I point this to a function within a class within a model in MVC?
If someone could provide a simple example that would be a huge help.
This discussion has been closed.
Answers
If you using Java the sample project in below may help.
https://github.com/rakurakupg/springmvc-jquerydatatables-example
I'm using HTML, PHP, and JS/AJAX
download the php library accompany with datatables learn the orm like thingy it will produce the JSON data structure compatible with (datatable editor)
Found a decent example here http://datatables.net/development/server-side/php_cake
I started from this example http://datatables.net/development/server-side/php_cake
Modified it to work with code igniter and MVC
This is the first working code I got to, could be cleaned up a bit.
View snippet
Controller snippet
JS Snippet
Model snippet