Framework One for when you don't need a framework pt2

This post follows on from my first part and is all about using a framework for even the most simplest sites.

So our family member, Marvin Acme, has come back with the layout for his ACME gadgets to capture and kill rodents site.
Site layout

Being a family member means we're getting paid most likely with canned beer and with that in mind they are not getting me working on stylesheets!

Posted: 07-Jun-2010

View: 2830

Permalink: here

Comments

Hi Andy,

For a webstore, how to implement? I do not want a CFM page for every unique page coming out of the database. Same with a plain and simple vanilla site. I want ONE layout file where all the logic is contained.

Not having jumped on the FW/1 bandwagon yet, is this bad? I'm currently using FB3.x (with CFC's) and FB5.5 noxml for most of my sites and apps. How does FW/1 make my life simpler? Your examples don't seem very convincing to me, for now...

PS: Where's the next nice CSS for your blog? You've had so many, this one is a little boring ;-)

#1 Sebastiaan
09/Jun/10 9:37 AM

@Sebastiaan My example isn't for you :) My example for for people who build very flat and simple sites. Usually people would't use a framework for just a 3 page site but with FW/1 I wanted to demonstrate that you still can and in just case the site ever grows you already have your building blocks to create an application.

For something thats more complex like a webstore look at downloading FW/1 (http://github.com/seancorfield/fw1) and looking at the example apps in there. Sean Corfield & co have done a great job with demos and documentation for such an infant framework!

As for the site design I was going for something akin to Posterous but will be updating soon :)

#2 Andy Jarrett
09/Jun/10 9:58 AM

Strange . . . I these steps and when I go to localhost/acme, all I'm getting is the text "New site coming soon". I even copied/pasted the code for default.cfm just to doublecheck. Any ideas what could be going on?

#3 Lola LB
09/Jun/10 4:37 PM

@lola did you follow part one to see the "Hello FW/1" message? Can you create any folder off the root of Localhost and view it?

#4 Andy Jarrett
09/Jun/10 7:10 PM

I believe the folder name should be layouts - not layout. This might address Lola LB's issue.

#5 pjh
14/Jun/10 2:28 PM

@pjh good spot Updating the site now

#6 Andy Jarrett
14/Jun/10 3:49 PM

@pjh . . Yep, that was the issue. Good catch!

#7 Lola LB
14/Jun/10 4:14 PM

Great Tutorial!

#8 Reinhard Jung
28/Jun/10 8:47 AM