panique/mini — pull request #139 by pMan (2014-11-08 22:25:55+00:00)
Title: MVC pattern updates

Hi panique,

First of all, I really appreciate licence-free source code on github.

I have made some modification:
1. I have added a View class to render the templates to make mini more compatible with MVC pattern.
2. For convention, renamed the templates to .phtml.
3. Updated the Controller class to have the instance of View within it, every controller will have it now, by default.
4. Added a layout.phtml which replaces the header and footer, but with a placeholder for variable content of the page.
5. Template path (where template files reside) can be set from controllers, so that View can look up the files in that location.

Thanks
-pMan