Thursday, March 2nd, 2006

Rasmus Lerdorf’s no-framework PHP MVC framework

Category: JavaScript, PHP, Programming

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.

Posted by Chris Cornutt at 8:27 am
2 Comments

+++--
3.5 rating from 34 votes

2 Comments »

Comments feed TrackBack URI

[…] Ajaxian » Rasmus Lerdorf’s no-framework PHP MVC framework […]

Pingback by John Tokash’s Blog » links for 2006-03-03 — March 2, 2006

Hi, I have build on Rasmus’ great ideas. You may be interested to read this short article of mine. Please google for:

“An MVC simplified architecture combined with web services”

You can add my surname (Bonifati) and name (Antonio) to make sure you get the right page.

Full example source code is provided (link at the end of the post).

PS: looking for a no-framework PHP job in all Europe…

Comment by ninuzzo — February 20, 2013

Leave a comment

You must be logged in to post a comment.