Why Not To Make an MVC Framework
As I think about what I’m hoping to convey with this post, I’d like to make two points very clear. First, I am sick right now and very possibly am loopy beyond compare. Why I decided to write a blog post in this condition is not a question I could ever answer. Secondly, I have nothing against MVC beyond its status as an apparent fad in the web development industry. It is a good design pattern that helps many people follow some great coding practices. With that out of the way, lets get into the reason for the post.
The other day I was preparing to make a presentation on N2F to my local PHP Meetup group. I remembered that a good many of the other members in the group were proponents of MVC, and figured that there would be no harm in creating a simple MVC extension for N2F that would show how flexible we made our framework. Quite simply, this was the worst idea I’ve had in quite some time, but at least I got a bit of a chuckle out of the whole process.
I would never claim to be any kind of an expert on MVC. I know the basic concepts, and attempted to build my extension based on that understanding. The following file will give you everything I did to make N2F an MVC-ish framework. The file mvc.ext.php is the extension which overwrites two system events to allow the change in structure. The rest should be fairly self-explanatory, but should never be used on any kind of server…ever. Enjoy!
- Andy
Labels: Development, Self, Zibings Technologies


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home