[coldbox 4.1] Hybrid Fusebox App

Hello,

I’m looking into moving our legacy application written in FB5 into the Coldbox framework a section at a time and am having a problem with not being able to see output from a coldbox request. The general setup I went with is to put our coldbox code in a subfolder underneath the existing app like so:

-FB5App
–_coldbox
----handlers
----layouts
----model
----view
–controller
–model
–view
–Application.cfc
–index.cfm

We have set up a very basic hello world page in the coldbox app. We are also bootstrapping the CB framework in the application.cfc. Our ‘onRequestStart()’ method looks like this:

`

<cfif IsDefined(“url.refreshApp”)>
<cfset onApplicationStart()/>

<!— variable used to bypass fusebox processing in index file —>
<cfif StructKeyExists(url,‘cbevent’) or StructKeyExists(form,‘cbevent’)>

<cfset application.cbBootstrap.onRequestStart( arguments.targetPage )/>

`

In our index.cfm I have this:

`

`

Basically what I’m doing is checking to see if I have a URL/Form variable called ‘cbevent’ (the eventName setting has been configured in coldbox.config) and if I do i process the the request using Coldbox and if not I process using Fusebox. However when I call my main.home event I get no output from the request. I know CB is processing the event because if I put a ‘cfabort’ in the Main.cfm layout file I can see the output from my view. I have to be missing something simple?

Thanks.
Brett

Turns out I was missing something simple. To anybody trying to do this or anyone using a tag based application.cfc, the ‘output’ attribute of the ‘onRequestStart’ method should be set to Yes/True.