ViewHelpers not working in CB-6 RC

Description

Create a new app using advanced-script template. Add simple function to `indexHelper.cfm` such as:


Add call to this function in index.cfm and after reinit fw, it will work. However on page refresh you get an expression error: "No matching function [sayHello] found"

Activity

Show:
Luis Majano
May 14, 2020, 10:56 PM

I can’t replicate this. Are you sure you added <cfscript> tags around the function in the helper?

Andrew Kretzer
May 14, 2020, 11:38 PM

Yes. It’s failing on all existing applications that I am trying with CB-6, so I created a fresh install with a template and that’s the only change I made. It works first, then a refresh and it bombs.

Andrew Kretzer
May 14, 2020, 11:43 PM

I just zipped up what I was using, if that helps?

Luis Majano
May 15, 2020, 1:38 PM

Ok, now I get what you are trying to do. I thought it was the global helper, but no, it’s the view helpers. Sorry, wires crossed. Ok, I can reproduce now.

Luis Majano
May 15, 2020, 1:57 PM

Fixed, and building just in time for RC release

Assignee

Luis Majano

Reporter

Andrew Kretzer

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure