I have a database with a column called lang_ref where I store the name of a constant HOME. In a php file I define HOME as "Home Page".
When I am building $content (a variable that is building HTML) I am trying to get the value of the constant _HOME.
My code is as follows:
In my database in the column lang_ref I have stored the value _HOME
define ("_HOME", "Home Page");
$content .= $lang_ref;
I keep getting _HOME as the end result displayed in my HTML code rather than Home Page.
I have a reason for doing this ... my language file is filled with defines and anyone who wants to localize my app can just replace:
define (_"HOME", "Some other language");
and when I build my menus I want them to use the new defined constant.
HELP!