how to make use of order[i].column in server-side processing?
how to make use of order[i].column in server-side processing?
liangtp
Posts: 10Questions: 5Answers: 0
Hi,
I am using Server-side Processing to process my data and send to client datatables.
However when I click on one of the column header, I read from http://datatables.net/manual/server-side that the order[i].column is sent to the php server.
At the server, how do I access this value? There is a dearth of documentation concerning server side processing here. :(
Thanks
This discussion has been closed.
Replies
OK. I have found the answer myself.
if ( isset( $_GET['order'] ) )
{
$iSortCol = $_GET['order'];
LogErrorToFile($fileName, $Operation, print_r($iSortCol, true));
}
RESULT BELOW:
(
[0] => Array
(
[column] => 0
[dir] => asc
)
)