Hello everyone!
Firstly I would like to say a warm “hi” to the community, I have just recently started my exciting adventure with coldbox, and it’s my first time on this group. Please be patient with me
To the point: I created a new module and I am having problems setting the “defaultView” option in the layoutSettings struct inside my module configuration:
ModuleConfig.cfc:
layoutSettings = { defaultLayout = "mainlayout.cfm", defaultView = "test_view.cfm" };
When I reload the page, I get an error:
Application Execution Exception Error Type: missinginclude : 0 Error Messages: Page //views/default/index.cfm [C:\(...)\slawek_contentbox\views\default\index.cfm] not found
The weird thing is that the defaultLayout setting works correctly and loads my layout (mainlayout.cfm).
What is interesting, if I check in my handler for event.getDefaultLayout() or event.getDefaultView() they both return the main application default values set in Coldbox.cfc
If I set the view inside my handler (default.index) using event.setView(view=“test_view”), the view is rendered correctly. If I set the default view inside the handler using event.setDefaultView(“test_view”) it works correctly too.
It seems that only the defaultLayout setting overwrites the main coldbox settings but not the defaultView.
Would someone be so kind to check if this functionality works for them?
best regards,
Slawek