Hi Guys,
I am trying to get my head around MVC (Model View Controller) but having difficulty as I seem to be unable to find many practical examples, ideally with code that I can download and test locally on my own machine - does anyone know of site that has some good tutorials for MVC including practical examples and downloadable code?
Thanks in advance
MVC - Any practical examples in PHP
Moderator: General Moderators
Re: MVC - Any practical examples in PHP
Seems like a popular subject. There are currently a few other threads running which you might find interesting. Also search in the archives of the forum: there have been many, many good discussions here.
As for code examples: in the other thread there's a link to a tutorial by Chris viewtopic.php?f=19&t=81192
There's a few other, like this on on phpit or one on phppatterns. But as you will discover, there's more ways to MVC and some are "better" then others.
You can also take a look at how some frameworks do it. The skeleton framework has a few examples which might be interesting to look at. Arborint, a frequent contributor to this forum, is the main developer of that framework. If you include his name in a search for MVC discussions on this forum I guarantee you'll find some good discussions.
As for code examples: in the other thread there's a link to a tutorial by Chris viewtopic.php?f=19&t=81192
There's a few other, like this on on phpit or one on phppatterns. But as you will discover, there's more ways to MVC and some are "better" then others.
You can also take a look at how some frameworks do it. The skeleton framework has a few examples which might be interesting to look at. Arborint, a frequent contributor to this forum, is the main developer of that framework. If you include his name in a search for MVC discussions on this forum I guarantee you'll find some good discussions.
Re: MVC - Any practical examples in PHP
framework.zend.com