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
1
vote
0 answers

FW/1 URL Encoding Subsystems

I am creating an FW/1 based plugin for Mura CMS, and after I installed it I was getting permanent redirect errors in my browser. I noticed that my URL which should be /plugins/studentms/?action=admin:main.default was being turned into…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
1
vote
1 answer

ColdFusion 8 Applications Taking Forever To Start

Lately I have been finding that some of the ColdFusion applications on my production server are taking forever to start. Most of the applications are Mura websites, and one thing that I found across all of the applications is that they are FW/1…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
1
vote
1 answer

FW/1 pattern matching N digits

I am trying to match routes where IDs have exactly 6 numbers This does not work: variables.framework.routes = [ { "main/{id:[0-9]{6}}" = "main/home/eid/:id"}, { "main/home" = "main/home"}, { "*" …
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
1 answer

Using wildcard route matching in FW/1

I am trying to use the wildcard match on routes in FW/1 v 3.5. Application.cfc component extends="framework.one" { this.name= "Wildcard7"; variables.framework = { home = 'main.home', action = 'fuseaction', baseURL =…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
0 answers

ColdFusion FW/1 migration from 2.5 to 3.5

I guess at some point we had Fw/1 2.2 and upgraded to 2.5. So developer set variables.framework.enableGlobalRC = true to work in 2.5 as 2.2. So now my issue is we want to upgrade to FW/1 3.5 and not really sure how to remove this from out…
MathParks
  • 23
  • 2
1
vote
1 answer

Getting FW/1 version info

I have been able to get other system information, but how do I get FW/1 version info? I have tried Application info

Java Version: #CreateObject("java", "java.lang.System").getProperty("java.version")#

ColdFusion…

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
1 answer

FW/1 ColdFusion found 0 methods that match the provided arguments

Hi I'm getting this error below and not sure how to resolved it. Detail: Either there are no methods with the specified method name and argument types or the leaseService method is overloaded with argument types that ColdFusion cannot decipher…
user752746
  • 617
  • 9
  • 31
1
vote
1 answer

Using FW/1 with a pre-existing Application.cfc

I am creating a sub-application that is inside of an overarching application that contains an Application.cfc (that I can't modify). FW/1 requires an Application.cfc to extend in order to work. How would I go about having a Application.cfc for FW/1…
1
vote
1 answer

Light weight scaffolding for FW/1

I am trying to create a light weight scaffolding facility for FW/1. Right now I have a file called scaffold.cfc in the controller which looks like function…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
1 answer

Form action call to insert data to database in Framework 1

I am learning Framework1 and tried to do a simple ColdFusion program to insert data into database after submitting a form. My simple form person.cfm is in views/main
In the form…
Ram
  • 7
  • 2
1
vote
1 answer

FW/1 SES and IIS Rewrites

I've just started with FW/1 and I'm just trying to get things working but not having much luck with the SES urls. So in Application.cfc I'm turning SES urls on and removing index.cfm I have: generateSES = true SESOmitIndex = true in my main.cfc I…
Richard McKenna
  • 213
  • 4
  • 25
1
vote
2 answers

Null pointer exception on

The following code works on Adobe ColdFusion 9.01+ but not Railo 4.1 Furthermore, this only fails on Post This code is called inside of FW/1 setupRequest() in application.cfc INSERT …
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
3 answers

How do I return JSON from an action in FW/1?

FW/1 seems to be oriented to returning complete web pages what if JSON data is needed? A typical layout looks like: User Manager
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
1 answer

FW/1 Best place to put additional functions?

I'm learning the FW/1 framework and so far so good. I understand mostly how controllers/services/views work. However I have some additional functions that manipulate the views in some cases i.e. alter the CSS and layout depending on what is returned…
Shaun Perry
  • 159
  • 1
  • 2
  • 12
1
vote
2 answers

cfc that bring in additional functions via include

My application.cfc starts with: later on void function setupApplication() output="false" { I have // tools include "initapp.cfm"; initapp.cfm has nothing but functions in it. Things like: