[ColdBox 3.8.1 and ealier] Global directory layout helper not being included

Some questions about layout helpers, wondering if I’m missing something here:

Scenario A: Given the following directory structure in layouts:

layouts/ home.cfm homeHelper.cfm main.cfm mainHelper.cfm

If I wanted a global helper to be included on both home.cfm and main.cfm, the normal convention [directoryName]Helper.cfm does not work against the layout folder, should we be able to do layoutsHelper.cfm ?

Scenario B: Given the issue presented on the previous scenario and going by the documentation (http://wiki.coldbox.org/wiki/Layouts-Views.cfm#Layout_Helpers), I tried this, but it still does not work:

layouts/ myApp/ home.cfm homeHelper.cfm main.cfm mainHelper.cfm myAppHelper.cfm

I am seeing homeHelper and mainHelper being included respectively to their layout but not myAppHelper.

Can someone please verify that it is or not working? I can create a ticket but wanted confirmation first.

Thanks :slight_smile:

create a file called ‘helper.cfm’.

Hi Aaron,

Tried your suggestion and put the helper.cfm in both layouts/ and mainApp/ directory and didn’t see it included. Also, don’t see anywhere in the docs that mention that, do you have a reference?

Thanks,

n/m. using includeUDF().