how to make use of order[i].column in server-side processing?

how to make use of order[i].column in server-side processing?

liangtpliangtp Posts: 10Questions: 5Answers: 0
edited May 2014 in DataTables 1.10

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

Replies

  • liangtpliangtp Posts: 10Questions: 5Answers: 0

    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
    )

    )

This discussion has been closed.