Webbers Corner

Full Version: Lang files and php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's