RE: [coldbox:18237] [Coldbox 3.6.0] Question on getting data for none view related items in a layout.

Do you need to reinit?
Are you sure the runEvent() code is being reached in main.cfm?
Can you share the code in test/test_a?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I re-init after every change.

pretty sure runEvent is hitting. I have output on both sides of it.Also it does not show up in the invoke list in the debug.

I tried calling it for a none existing event and I do get an error.

Here is what my test_a handler looks like

`
public function test_a (event,rc,prc){
var viewData = {“TEST”":“TEST VIEW DATA”};
return renderView(view=“test/test_a”, args=viewData);
}

`

and my test_a view

`
TEST_A VIEW START

writedump(rc);
writedump(prc);

TEST_A VIEW STOP

`

This displays if called directly but not from the output of runEvent(“test/test_a”)

If I renderView(“test/test_a”) it works but does not contain anything I passed into the PRC in the test.test_a handler.

Here is the snippet from my main.cfm

`

Test RUN

#runEvent("test/test_a")#

TEST RUN

#renderView()#

TEST_ MAIN
#writedump(prc)#
TEST_MAIN

`