Frameless PHP, or How to Write Ruby-on-Rails-like PHP Without a Framework
If you’re disciplined, you can write MVC code in PHP without using an MVC framework. The key is to have the right directory structure. For the Dowling's Wheel project I mentioned a couple of posts ago, I simply used the directory structure from Ruby on Rails. And no framework.
Check out the source code to see how it’s done.
/app
..../controller
..../helpers
..../models
..../views
/db
/lib
/public
..../images
..../javascripts
..../stylesheets
/test
index.php
Check out the source code to see how it’s done.
4 Comments:
Always amazed that people so often think the only way to do MVC is through a framework. Nice to see someone talking about rolling something light weight.
By Derek Neighbors, at 1/17/2010 8:57 p.m.
Thanks Derek!
By Jonathan, at 1/17/2010 10:35 p.m.
I'm doing the same but with Pyton and webpy. Check this out:
http://github.com/alexksikes/googlemodules
By Unknown, at 3/09/2010 10:54 a.m.
Cool stuff, Alex!
By Jonathan, at 3/10/2010 12:07 a.m.
Post a Comment
<< Home