Home > Updates > Conversion to MVC

Conversion to MVC

You might not have noticed, but I’ve retrofitted my website to follow theĀ  MVC pattern. What this means is that from now on I’ll be able to do my PHP/MySQL stuff on it, while keeping the designing part independent. This way I can keep writing scripts and whatnot, and not affect the layout.

As with any other MVC style websites I make, I start off with the global headers and footers. For that, I made a modified version of the original front page’s design to allow cramming of more content on-screen. I have made a test page using that view. So whenever I create new controller files, my constant parts of the layout will be kept, while the content for the pages change.

If you’re an coder and a designer, you might’ve heard of MVC architectural pattern (Model-Controller-View). It’s basically the separation of the program logic from the input and the presentation, allowing independent development, testing and maintenance of each part. In other words, if I only want to update the look, I don’t need to touch the scripts that involve the input and processing of data.

  1. No comments yet.
  1. No trackbacks yet.