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

Outgoing message queue for MVC

All of my FW/1 controllers extend extend base.cfc. In base.cfc there is a function called addMessage(). Messages are thing like "You have successfully logged in". "There is an error in your data", "Error occurred while processing request. The…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
1
vote
1 answer

Coldfusion Fusebox URL-Controller SES mappings

just starting to use coldfusion & fusebox a bit (this is my second question asked here, where a lot of the response mentioned that fusebox is no longer supported and there are possibly better suited frameworks - so am looking at ColdBox and FW/1 -…
rhinds
  • 9,976
  • 13
  • 68
  • 111
1
vote
1 answer

Return to page state after calling file deletion page

My form allows users to select a directory to view the files contained within it: (files.cfm)
aparker81
  • 263
  • 1
  • 5
  • 23
1
vote
1 answer

URLRewriteFilter and FW1

I'm using Framework One (FW/1), Coldfusion 10 and trying to use Tuckey URLRewriteFilter to remove the index.cfm from the URL. I have generateSES set to true and SESOmitIndex to true in the FW/1 settings I have the following code in my…
1
vote
4 answers

Hide FW/1 actions without controller method (view only)

Currently I am using "partials" concept in my FW/1 views: these chunks of layout that can be re-used by different views. They are prefixed with underscore for easier maintenance, but unlike the CFWheels these still can be used as implicit views…
Sergey Galashyn
  • 6,946
  • 2
  • 19
  • 39
0
votes
2 answers

coldfusion - file content editing

I've got fw1 using the content of the default.cfm page as the editable content region. While this works fine for static content, I'd like to add the ability to edit the content over with fckeditor or some other in-browser WYSIWYG tool. Is there any…
Daniel
  • 34,125
  • 17
  • 102
  • 150
0
votes
1 answer

FW/1 How to return ajax data without view?

I have the following function that returns rc.employee. I am calling this function checkempid from the index page of a model. I am triggering this to run onblur. I only want the data to come back, but FW1 seems to be rendering the entire page again…
spacerobot
  • 265
  • 1
  • 5
  • 23
0
votes
1 answer

Coldfusion can not insert date type into MySQL

I am using Framework7 as the front-end along with Coldfusion fw1 4.2 (Lucee 5.3) for ajax JSON responses. I have written the following model\services code (without syntax errors in fw1) that is called via the appropriate controller to return JSON…
asimkon
  • 915
  • 1
  • 14
  • 21
0
votes
2 answers

Fw/1(Lucee) - Ajax request failed by CORS policy in Framework7

I have got the following ajax request in Framework7 in order to get back json data in FW/1 (4.2) (Lucee 5.2.9), but unfortunately i get error due to CORS policy via Chrome browser. app.request({ url:"http://127.0.0.1:49820/index.cfm/user/login/", …
asimkon
  • 915
  • 1
  • 14
  • 21
0
votes
1 answer

JSON return null in ColdFusion

I want to return a null as a part of my JSON response local.JSON = { "pwdstate" : null, "pwdconfirmstate" : null, "content" : "" }; ... framework.renderData().data( SerializeJSON(local.JSON) ).type( "rawjson" ); But I get an error that says…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
0
votes
1 answer

Axios and FW/1 unable to use headers (CORS error)

I am unable to use headers with my axios request This works App.vue axios .get(Config.BASEURL + 'pref/footer', { }) .then(response => (this.footer = response.data)) This does not App.vue axios .get(Config.BASEURL + 'pref/footer', {…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
0
votes
1 answer

ColdFusion forcing CSRF to fail

I have a website that check for CSRF tokens when a user logs in. The form looks like Later it is checked with if (framework.getCGIRequestMethod() ==…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
0
votes
2 answers

Inject Dependancy in application.cfc FW1

I've an my test application in FW1. Currently I'm having test service and DAO. For example Model/services/test.cfc and Model/DAO/testDAO.Here I want set one of data on application.cfc. How I can inject some services / DAO in application cfc. I've…
Kannan.P
  • 1,263
  • 7
  • 14
0
votes
1 answer

Disabling authentication for a single page (ColdFusion)

Let me start by saying I am not really a full-stack developer and this is out of my scope of understanding. I have tried searching for an answer but I can't find anything relevant. If you have any reasons to share they would be much appreciated! I…
Robbie Milejczak
  • 5,664
  • 3
  • 32
  • 65
0
votes
2 answers

FW/1 subsystem - redirect to top site

This is my first attempt at subsystems and for the most part things are going well. I’m having trouble redirecting usesr from a subsystem site to the main top site when the session ends. Here may site structure, it pretty standard. I’ve logged in…