I've been working like that for about two years and just recently I got enlighted in the use of classes. I've built a few sites and after a while on each of them I run into a problem. Say I wanna add a meta-refresh tag or send a cookie; with my earlier code, that brought out hell... more or less. Sure I solved it, but it never felt like it was the best thing to do.
Since I first used a class, I've tried to figure out how they work. I got them running but I had no idea what I did, I just used the examples provided. I read through some tutorial and the docs at php.net, but I just got confused. Then, suddenly I got some class for something, checked out the code and my brain just snapped. "aaah, THAT's how it's done!". It wasn't well documented, just nicely structured and easy to read and understand.
You'll get it one day. Until then - do what you feel is the best thing for you to use and understand.
This might not have helped you at all, it's just my story.
//Simon
Ryan A wrote:
Hi, I myself never really create classes to use in my projects, if I ever use classes its only because they come from someone else (eg phpclasses.org), I find using the non OO approach much easier to understand. Just my 2 cents. Cheers, -Ryan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php