eg. localhost/?action=main.default
If there's a main.cfc, it calls a views/main.cfm that corresponds (or
whatever the details are; that's not important).
In LightFront, assuming action = your event/action variable, that's
how it works if there's no main.cfc. If there is a main.cfc, it would
call default() and then default() would have to call a displayView().
It doesn't do it automatically.
Would it be helpful to people if I change it so that it WOULD call
view/main/default.cfm automatically if the main.cfc is present? I am
leaning towards adding this, but I wanted some feedback first.
That's another converging concept between FW/1 and LightFront, but
rest assured, I am thinking of a big addition I haven't announced yet
that would certainly make LightFront go a completely different
direction.
I know the lack of docs beyond what you find in the sample app is a
little frustrating for some. I've been busy on a project using
LightFront that's been taking a lot of my time outside of my day job,
and it's helped me realize a few new features that would really be
awesome if I do implement them and take LightFront in an exciting
direction, but it's still a nacent idea that I won't pursue until
after the project's done. Unfortunately, that also means no docs
either until then, unless someone wants to help me out in that
fashion.
Sincerely,
Brian Meloche,
brianmeloche at gmail dot com
Podcast: cfconversations.com
Blog: brianmeloche.com
Twitter: @coofuushun
Manager, Cleveland CFUG, clevelandcfug.com
Creator, LightFront: http://lightfront.riaforge.org
In FW/1, that framework has services, controllers, views and layouts
all called when a section and item are called.
eg. localhost/?action=main.default
If there's a main.cfc, it calls a views/main.cfm that corresponds (or
whatever the details are; that's not important).
In LightFront, assuming action = your event/action variable, that's
how it works if there's no main.cfc. If there is a main.cfc, it would
call default() and then default() would have to call a displayView().
It doesn't do it automatically.
Would it be helpful to people if I change it so that it WOULD call
view/main/default.cfm automatically if the main.cfc is present? I am
leaning towards adding this, but I wanted some feedback first.
I am thinking of a big addition I haven't announced yet
that would certainly make LightFront go a completely different
direction.