db and dt in Datatbles ServerSide Processing

db and dt in Datatbles ServerSide Processing

bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

Hello
in "server_processing.php" i found db et dt
my question if they are depended of my database or no !! so can i change them or i keep them ?
array( 'db' => 'first_name', 'dt' => 'first_name' ),

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @bechirmrad ,

    They can be changed, but you would need to change the dependant scripts, such as ssp.class.php. I would suggest getting it working first, then changing if there's a need, at least then you're tackling one unknown at a time.

    Cheers,

    Colin

  • bechirmradbechirmrad Posts: 20Questions: 6Answers: 0

    Thanks !! i will try it

  • McAuMcAu Posts: 2Questions: 0Answers: 1
    Answer ✓

    These represent the DataTable mapping for the column header and your database column, where 'db' (an associative array key) holds the string representation of your database column and 'dt' (another associative array key) is the index number of DataTables internal column index.

    Example:
    array('db' => 'id', 'dt' => 0)

    It depends on the script if you need those array keys to get the appropriate values. That's your choice.

This discussion has been closed.