Framework One, or FW/1, is a lightweight convention-based MVC framework for CFML.
Framework One, or FW/1, is a lightweight convention-based MVC framework for CFML.
It is designed to require near-zero configuration, and not to get in the way, with controllers, services, views and layouts being discovered with straightforward conventions, and can auto-wire any bean factories used.
Multiple FW/1 applications can be combined as one using the subsystems feature.
Usage
FW/1 uses Application.cfc
and simple conventions to provide an' MVC framework in a single file.
//application.cfc
component extends="framework.one" output="false" {
this.name= "Sample";
this.sessionManagement = "yes";
this.sessionTimeout = CreateTimeSpan(0, 4, 0, 0);
variables.framework = {
home = 'main.home',
baseURL = 'useCgiScriptName',
trace = isDebugMode()
};
variables.framework.routes = [
{ "main/{id:[0-9]+}" = "main/home/id/:id"},
{ "main/home" = "main/home"}
];
}
Version 3.5 was released October 21, 2015