tags:

views:

1472

answers:

8

Can someone recommend some good resources for learning about MVC in PHP? It doesn't have to be specific to MVC in PHP. In fact, I'm looking for recommendations of materials that focus on the higher level concepts with examples that could port well to any language so even ASP.net books will be tolerated ;-)

Any recommendations for books, websites, blogs, etc would be excellent.

UPDATE: I have reviewed the MVC Learning Resources post but all of the references there seemed to be ASP.net specific. I was hoping to gather suggestions that were broader than a single language.

A: 

As for MVC, simply google it and you will get a list of demos of MVC. As for a PHP implementation, I am a big fan of CakePHP and they have a solid MVC framework.

Dimitry Z
A: 

For general MVC, it seems we've got MVC Learning Resources to work with.

John Fiala
Except that all of the posted references are ASP.net specific.
Noah Goodrich
+2  A: 

Here's a hint: MVC and "Front controller" are two separate things, yet a lot of people get them mixed up.

Martin Fowler's book Patterns of Enterprise Application Architecture is a must-read. Not just for this, but it's a splendid book on application design.

troelskn
+1  A: 

I think this document by Rob Allen, is about the best summary I've seen. You may not be intending to use the Zend Framework, but the principles of what the model files do in comparison to the view files and the controllers is nicely explained with a systematically built example. Once you've worked through this example, the concepts are easy to apply.

Michelle
A: 

Here is a Stack Over Flow question about MVC Framework that might be a good start.

Daok
+2  A: 

You might just choose a php mvc framework and implement something in it. Or, even better, implement your own. It's not that difficult to set up a simple front controller type framework. There are a ton of tutorials out there. Doing this you'll end up with something that has just the features that you need and you'll learn a lot in the process.

Paul Wicks
Thank you. These are exactly the types of links that I'm looking for.
Noah Goodrich
+8  A: 

The Symfony documentation has a good explanation of MVC in PHP. It works an example from procedural code up to using the framework, one layer at a time.

Colonel Sponsz
A: 

This could be a good starting point: MVC in PHP is a tutorial covering the basics of MVC.

php html