Questions tagged [fw1]

Framework One, or FW/1, is a lightweight convention-based MVC framework for CFML.

enter image description here

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

Blog: http://framework-one.github.io/

72 questions
0
votes
2 answers

Concrete examples of MVC Frameworks Saving Development Time

A number of the sites I've recently inherited are in various versions of FW-1 (a "light weight" Model-View-Controller framework for ColdFusion.) I have a functional grasp of it as it is in place, but I'm not seeing the advantages of using it in…
Maxhirez
  • 99
  • 7
0
votes
1 answer

Starting slash in FW/1 route pattern matching

I am reviewing the configuration of FW/1. I notice that some of the routes start with a / and others don't. Is there any difference between the two? variables.framework.routes = [ { "chart/home" = "chart/home"}, ... …
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
0
votes
1 answer

FW/1 not finding controller

I recently updated my FW/1 app to version 3.5 and now the controllers functions aren't being called.