Thursday, March 2nd, 2006
Rasmus Lerdorf’s no-framework PHP MVC framework
Rasmus Lerdorf, creator of the PHP langauge, has a new tutorial on his site today that looks at the creation of a “no-framework PHP MVC framework” using PHP5, the Yahoo! User Interface Library, and JSON.
So you want to build the next fancy Web 2.0 site? You’ll need some gear. Most likely in the form of a big complex MVC framework with plenty of layers that abstracts away your database, your HTML, your Javascript and in the end your application itself. If it is a really good framework it will provide a dozen things you’ll never need.
I am obviously not a fan of such frameworks. I like stuff I can understand in an instant. Both because it lets me be productive right away and because 6 months from now when I come back to fix something, again I will only need an instant to figure out what is going on. So, here is my current approach to building rich web applications.
He steps through the entire process of working up the “non-framework” – the goals of the project, why to go with the MVC approach for the structure, and, of course, the code.
There’s an illustration that shows a top-level view of how it all works as well as an example application to see the end result. Also, be sure to check out all of the coments on the post for lots of other good tips.












[...] Ajaxian » Rasmus Lerdorf’s no-framework PHP MVC framework [...]
[...] Rasmus Lerdorf (the inventor of php) has a coolio tutorial on how to use his ‘no-framework PHP MVC framework’. For all you non-technies out there MVC is the way that the Java enterprise wonks build simple to use frameworks – so that ANYBODY can understand how to build web apps. In my past experiences anyone who uses MVC – needs to. So having one for PHP will really help out the world of programming newbies – except NO ONE in the PHP world woudl EVER associate themselves with a framework (as it’s for wussies) for thus the title. [...]