Hey guys... just starting to play around with Coldbox over the last
week or so and I must say I LOVE it so far. After using Fusebox for
about 8 years the migration to Coldbox was pretty simple. Im still
trying to figure out a few of the intricate things but for the most
part, Im having a good time with it.
A question just popped in my head while working on this application
though. In the layouts section of the config.xml file, I have several
layouts defined and I have several "View" tags under each one to
define which layout I want to use by default for that view.
<Layout file="Layout.MainSidebar.cfm" name="Sidebar">
<View>admin/projects/dspProjectOverview</View>
<View>admin/dspAdminMain</View>
<View>component/dspList</View>
<View>component/dspForm</View>
<View>component/dspView</View>
</Layout>
My question is this, since I put all of my views in folders (packages)
can I list the package in the View tag and have it inherit all of the
views or do you have to explicity list each view for the layout? Heres
an example of what Im thinking:
<Layout file="Layout.MainSidebar.cfm" name="Sidebar">
<View>admin/</View>
<View>component/</View>
</Layout>
Obviously that doesnt work right now but Im wondering if there is some
way to do this.
Thanks in advance and keep up the great work!
Russ Johnson
http://angry-fly.com