Hi NogDog -
Thanks for your reply. I use a mix of PHP4 and PHP5. I'm pretty comfortable with the OO stuff in PHP4; I've dabbled in the new PHP5 stuff, but haven't really leapt into the deep end of the pool yet.
Unfortunately, the time and money to take classes is not available to me right now. Anyway, I've learned everything I know on my own, and I know I can conquer this too if I can just find a good grip on it somewhere.
I've found tons of theory on this subject, but precious few concrete examples. I totally understand the end goals of (say) an MVC architecture, and the rationale for pursuing those goals, but I have basically no idea what such a solution would look like in terms of the actual structure of my PHP code.
If you could outline such a thing, even in the broadest strokes, I think that'd help me a lot. Would my PHP page consist of one main object, whose data members include other objects that handle various concerns (presentation, business logic, database, etc.)? Or would these various objects exist in parallel (i.e., in the same scope)? Or something else?
I think one of the problems I want to solve - not the only problem, but one of the bigger ones - is the task of simulating a state-based system in the fundamentally stateless environment of a Web page. Lately, I've been shifting a lot of the interface logic to the client side (i.e., fancy JavaScript), which means I have to keep track of fewer states on the server side, but I'm not really happy with that solution. Not sure how directly this relates to the subject at hand.
If you could give me two paragraphs explaining the nuts and bolts of building an MVC architecture in PHP, I'd be infinitely grateful 🙂