I would like to implement MVC from scratch in PHP because I want full control of my own code
and no extra bagage from existing frameworks. Anyone who has any advice?
Yes, I’ve seen Lerdorfs article and it seems that it ain’t so much code after all. Actually I would more like to have a controller-view solution for structuring my application. I’ll stick to my own homemade PDO data-access classes.
Your question somewhat smells like Not-Invented-Here-Syndrome. In this case, my advice would be to live with the extra baggage of existing frameworks when you can be sure they are thoroughly tested and supported. Don’t reinvent the wheel.
On the other hand, the above argumentation would prevent new frameworks to be written. And writing one from scratch is a good coding exercise to learn and understand the MVC pattern.
So if you are really determined to do it, my suggestion is to learn what each part of MVC is, does and how they interact. You will inevitably come across the FrontController pattern as well, so you will want to learn about this one too.
Note that you are not the only person wanting to do this:
And there is also this interesting article by Rasmus Lerdorf