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
8
votes
1 answer

"Invalid CFML construct found" in Framework/1 core file

I downloaded Framework/1 from RIAforge and browsed to it. I'm getting the following error: Invalid CFML construct found on line 46 at column 81. ColdFusion was looking at the following text: [ The CFML compiler was processing: A script statement…
Phillip Senn
  • 46,771
  • 90
  • 257
  • 373
6
votes
1 answer

ColdFusion Bundler & Minification

I'm looking for a bundler/minifier for use in my ColdFusion site. I've searched for over an hour and have only found a suitable plugin for cfWheels. Unfortunately, we are tied to framework-one at this point, so we cannot use that plugin. Can anyone…
Brandon Osborne
  • 835
  • 1
  • 12
  • 26
4
votes
1 answer

Avoid cgi shared scope

I have a lot of FW/1 controllers which can perform differing functions based on whether the request is a get or post. I have a lot of code that looks like this if (cgi.request_method == "post") { I recently installed Commandbox's CodeChecker CLI …
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
4
votes
2 answers

ColdFusion Converting Form Values into a Struct

I am building a form for my ColdFusion application using the naming format report[{field-name}] which when using RoR or CFWheels would give me a struct on the backend called report containing all of my field names. I am using FW/1 so all of my form…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
4
votes
3 answers

Using only a controller in FW1 without a view

I have an Ajax request that sends some data to a page and expects back a truthy or falsey value depending on if the data was saved. In my controller I do everything and set the content to a true or false value. I really don't want to create a view…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
3
votes
1 answer

FW/1 - Accessing RC in setupRequest()

I'm using FW/1 ver 3.5.0 with CFM request context (rc) in setupRequest() but have been successful. According to the documents (http://framework-one.github.io/documentation/3.5/developing-applications.html#basic-application-structure) I need to add a…
user752746
  • 617
  • 9
  • 31
3
votes
1 answer

Post form data to Fw/1(Coldfusion) controller function using AJAX

I am new to FW1. I have got the basics but whenever I try to make it work it some other libraries its a pain. Its hard to figure whats going wrong. I want to post the form data in newServer.cfm into a controller function in main.cfc using AJAX and…
user3558596
3
votes
2 answers

String concatenation issue with Railo4

I'm working on an application built on Railo4 and am running into an interesting issue. I'm not doing anything new here as far as ColdFusion code goes. simply taking some strings, concatenating where needed, and returning a string.
Anil
  • 2,539
  • 6
  • 33
  • 42
3
votes
2 answers

CF9 cfscript, passing dynamic array in arguments

I start this year with a big question. When I do myName = "Henry"; myCustomFunction( [ myName, "Thierry" ] ); It throws an error like myName is undefined. Why? I can resolve this by doing myName = "Henry"; aMyArrayArgument = [ myName, "Thierry"…
Adysone
  • 121
  • 1
  • 8
3
votes
1 answer

Converting from ColdFusion Fusebox 5.5 noxml

I have a large Adobe ColdFusion 9 site that uses the no XML version of Fusebox 5.5. The site does not currently use CFCs in the model. The choices have been narrowed down to either CFWheels, Coldbox, or FW/1. My question is, which of those three…
2
votes
1 answer

coldfusion fw1 (hibernate) basic join between tables - "Path expected for join!"

I'm trying to do a basic join which would take a few seconds in SQL but... I'm trying to get it working with ORMExecuteQuery (Coldfusion 9 based on Hibernate). I have 3 objects: - Contact - ContactCategory_Link - ContactCategory Components details…
Micaël Félix
  • 2,697
  • 5
  • 34
  • 46
2
votes
2 answers

I'm getting a pdf in my Api Response, but angular is not able to download it , because subscribe is not able to grab a response on type pdf

In backend I'm using FW1(Coldfusion FrameWork). First code is of angular Ts file. showPdf(){ let ReportPdf = new FormData(); ReportPdf.append('DateFrom',(document.getElementById("dateFrom")).value); …
2
votes
3 answers

Error : Could not find the ColdFusion component or interface on Fw1 framework

This week I just try to recall Fw1 framework. But, I faced fw1 core file error. Below screen has my folder structure, Inside the lib folder, I have one more folder called a framework. The framework folder also has one.cfc & ioc.cfc files. Now, I'm…
jawahar N
  • 462
  • 2
  • 13
2
votes
4 answers

Using multiple SessionTimeout in Coldfusion

I have an application which has different types of users. I need to set sessionTimeout based on user type. For example admin 30 minutes, user 10 minutes. To do this, I gave a default sessionTimeout of 30 minutes in application.cfc
2
votes
3 answers

FileUpload error - "The form field fileInput did not contain a file" (CFML - FW/1)

I'm trying to upload a file on a ColdFusion site and am receiving the following error: "The form field fileInput did not contain a file." The file along with some text values are submitted through a form on an Edit page. The form is submitted to the…
1
2 3 4 5