"global" in PHP is the devil?
#11
Matt made a very good point. When using classes, its good practice when possible to "extend" a base class, so that everything is available via $this. That is (mostly) how the Merge System is built, and I've no idea why I didn't think to mention it Wink
Reply


Messages In This Thread
"global" in PHP is the devil? - by TheGarfield - 2012-01-11, 10:01 PM
RE: "global" in PHP is the devil? - by Dylan M. - 2012-01-11, 10:15 PM
RE: "global" in PHP is the devil? - by pavemen - 2012-01-11, 11:30 PM
RE: "global" in PHP is the devil? - by User 2877 - 2012-01-12, 12:04 AM
RE: "global" in PHP is the devil? - by Dylan M. - 2012-01-12, 12:36 AM
RE: "global" in PHP is the devil? - by Matt - 2012-01-12, 01:59 PM
RE: "global" in PHP is the devil? - by Dylan M. - 2012-01-12, 05:08 PM
RE: "global" in PHP is the devil? - by User 2877 - 2012-01-12, 05:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)