[geeklog-devel] Globals in GL2

Justin Carlson justin.carlson at gmail.com
Tue Dec 21 16:37:53 EST 2004


Going from scratch, no use cutting corners. 
I vote to pass the conf array to the objects.


On Tue, 21 Dec 2004 15:30:42 -0600, Tony Bibbs <tony at tonybibbs.com> wrote:
> Today I have a config file similar to the 1.3.x one.  All values get
> loaded into an array, $glConf.  Now, OO purists would say that you
> should never have to use global variables in your objects...instead you
> should pass them along in either the constructor or in via the method
> call (which ever makes sense).
> 
> So my question is, are we purists or not?  I've got some code that uses
> "global $glConf;" and some that doesn't.  Just want to make sure we
> don't have any violent reaction to this.
> 
> --Tony
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel
>



More information about the geeklog-devel mailing list