12:30 pm Steve Nelson - CFCs ARE the Framework
10 years ago when we started this Fusebox stuff we decided that if everyone wrote applications in the same way it would make maintenance easier. Now there are lots of different frameworks to choose from. MachII, Model-Glue, FarCry....
Are frameworks really necessary? – Absolutely. But it does not matter which one!
From day one Fusebox separated out view, and model and action parts.
The architecture code should be consistent regardless of who wrote it.
Multiple developers in a team, separation and distribution of work.
XML has become a standard in frameworks. XML offers ability to create tools that can be used. It seemed good at first but why have two languages.
Framework code must be run to parse the code and generate the parsed files.
Why can't the CFCs manage themselves? Well Steve's sample shows how they can.
In application.cfc you put all your CFCs into application memory.
There are 3 types of CFC controller, model and view.
Call include wrapped in cfsavecontent and return it.
Naming convention allows fuses and folders to be found easily.
Steve will post the Sample code later today.
There are some issues here with var scoping which need a solution.


There are no comments for this entry.
[Add Comment]