Shielding Database column names in the Init Statement for Datatables

Shielding Database column names in the Init Statement for Datatables

lesalgado47lesalgado47 Posts: 40Questions: 14Answers: 0

Hello, I recall reading somewhere in the documentation that there is a way to shield the actual column names used in the database.
What section can this topic be found in?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,211Questions: 1Answers: 10,205 Site admin
    Answer ✓

    Assuming you are using the Editor PHP libraries, this can be done with the Field::inst() constructor.

    The first parameter passed in is the database column name and the second is what is exposed in the JSON and what it expects from the client-side. The .NET libraries work the same way if you are using them.

    Allan

This discussion has been closed.