05-01-2007, 09:26 PM
Hello, I have just began coding in php over the past week, and don't know everything about it, only what I have written and used from other scripts,
but I have recoded my html website in PHP using footer and header.php files.
Well, here's what I wanted to do,
I want to be able to make a file called, "default.lang.php" and use this language file.
Now, when I type the {$lang->copyright} I want it to display what I have written for "copyright" in my lang file.
But, I must be missing something, because I can't get it to recognize the code.
I must need some function to tell it to grab the lang file from default.lang.php, but I don't know how or what.
If anyone can understand what I am trying to do, please give me some insight.
PS> I'm trying to code, like MyBB does with their templates, and uses {$lang->langnamehere}
Dr Small
but I have recoded my html website in PHP using footer and header.php files.
Well, here's what I wanted to do,
I want to be able to make a file called, "default.lang.php" and use this language file.
Now, when I type the {$lang->copyright} I want it to display what I have written for "copyright" in my lang file.
But, I must be missing something, because I can't get it to recognize the code.
I must need some function to tell it to grab the lang file from default.lang.php, but I don't know how or what.
If anyone can understand what I am trying to do, please give me some insight.
PS> I'm trying to code, like MyBB does with their templates, and uses {$lang->langnamehere}
Dr Small