I finally put a screencast together of Generate, which is a system
I’ve been working on the past month or so in my “spare” time. It uses
MyActiveRecord and two other classes to underpin a MVC (Model / View /
Controller) Web application.
Generate lets you start with your database, model the application
there following some simple conventions, and then push a button to
have it write a whole lot of PHP code for you. That code is static
once generated, so you can open it up and edit it and make any
adjustments or improvements you might want to make. More importantly,
you can move that generated code to a completely different server than
the one you generated it on, and it will still work.
How does this relate to Freeway? Well, the View layer is flexible
about where it looks for its template files, so that means you can use
Freeway’s normal file layout to create the visible parts of the
application while Generate (and any extension code you write) manages
the rest. (I don’t cover that aspect in my initial screencasts, but I
hope to do so soon.)
In the screencasts (split in two because of file size) the first half
gets the system installed on a Mac and the traditional Blog
application started, and the second half shows the addition of
comments to that blog. I make a few mistakes along the way (reality
TV, ya know) and correct them, which hopefully will help keep this
from appearing /too/ magical.
The screencasts are up on http://freewaycast.com/ in the number 1 and
2 spots (at least until Dan puts more of his fabulous casts there and
bumps them down). Be sure to watch them in order, because the second
half is literally just that – cut from the first with a knife.
Enjoy, and happy autumnal holidays!
dynamo mailing list
Update your subscriptions at: