capitalisation of field/column names

Questionscapitalisation of field/column names
santosh asked 11 years ago

How do I prevent capitalisation of field/column names. First letter of all field names are being capitalised even though in the database its small case

3 Answers
Abu Ghufran answered 11 years ago

Find this line in lib, and remove ucwords.
$col["title"] = ucwords(str_replace("_"," ",$c));

You can also define each column title. see demo example-full.php

santosh answered 11 years ago

in which file under lib folder should i make this replacement?
it would have been great if this was a settable parameter
My field names are case sensitive

Abu Ghufran answered 11 years ago

Hello

You can loop through column names (as done in emailed example) and set title for column without ucwords.

Changing core lib is last thing todo.

Your Answer

11 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?