Originally posted by: Hyperblaze
Originally posted by: troytime
Originally posted by: NiKeFiDO
Originally posted by: Hyperblaze
I personally would define it in as a class variable, but i'm a OO PHP developer
where's the added security in that?
and there's no difference between an OO developer and a "regular" php developer
there are times to use OO, and times to not
i try to use OO as much as possible.
I tend to use one include at the top of every php page (a config file) which autoloads any classes which I need.
And there is a HUGE difference in OO development compared to a non-OO php development as you call it. It's call clean and efficient code.
On a high scalable project, you show me code that's clean and efficient using non-OO code practice and I'll show you ways to make it more efficient (and clean).
ps: I'm not talking about a simple php script or page, I'm talking about a serious php web application