Shielding Database column names in the Init Statement for Datatables
Shielding Database column names in the Init Statement for Datatables
![lesalgado47](https://secure.gravatar.com/avatar/709391ed9875dfb58deb327d1295af24/?default=https%3A%2F%2Fvanillicon.com%2F709391ed9875dfb58deb327d1295af24_200.png&rating=g&size=120)
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
This discussion has been closed.
Answers
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