On Wed, Oct 07, 2009 at 05:34:35PM +1100, Eric Bauman wrote: > Hi there, > > I'm in the process of trying to wrap my head around MVC, and as part of > that, I'm attempting to implement a super-tiny MVC framework. > > I've created some mockups of how the framework might be used based > around a very simple 'bank', but I'm trying to get some feedback before > I go and implement it, to make sure I'm actually on the right track. > > Any thoughts would be much appreciated! > > Model - http://www.pastebin.cz/23595 > Controller - http://www.pastebin.cz/23597 > View - http://www.pastebin.cz/23598 > Template - http://www.pastebin.cz/23599 Your code (what there is of it) is fine. Beware of people who criticize your code on purely academic criteria. There are a lot of differing opinions about MVC, much of it driven by people making academic points versus people who actually code for a living. Even some people who actually code for a living fall under the spell of academic rules about this or that. The real key is, does it work, and can it be maintained. If so, don't worry about people who argue esoteric points about what should or shouldn't be in models and controllers, etc. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php