No I did not see that, and I see your point. I wanted to do it this way first to, but I am always stumbling upon problems with classes, which I am fairly new to.
This whole function is in a class, and I am always having huge problems with include() in classes, even if I put var in front of it.
And I actually just wanted to post about a similar problem, for example this errorhandling class, needs to be used in other classes too.
And I dont manage to load other classes within a class, and have no idea what to do.
Is there even a way, to use other classes in a class, and if yes how?
If I would use your suggested way (storing errors in an array), would it work if I simply had the language file like this?
?
Thanks,
Max