Useful MVC pattern implementation on PHP