Error in my class
View Single Post
10-27-2007, 06:36 PM
Join Date: Apr 2007
Firstly, please always put quotes around your array keys (
). Secondly, when you include the language file the variable is only set within the scope of the
function and is therefore not available globally. There are various ways to solve your problem depending on precisely how you want to handle things.
One solution would be to assign a member variable to the class and then you'd have to access them rather than using a global variable. Alternatively you can just add the line
$GLOBALS['lang'] = $lang
directly below each of the three
lines. The latter being a hackish and very much frowned upon way of handling things but it would work for you.
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe