Since both Fusebox and FW/1 (and most other MVC frameworks) tend to
take over responsibility for processing the request, the simplest
solution is to start the FW/1 migration with an application in a
folder off the web root with its own Application.cfc and migrate
circuit by circuit.
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
Unfortunately Fusebox apps vary so much in structure that it would be
almost impossible to create a *quick* how-to :)
> 1.) In some of my circuits, I start with:
>
> <circuit permissions="admin">
> <prefuseaction callsuper="true">
> <include template="fbx_settings.cfm" />
> </prefuseaction>
That maps to the before() method in a controller. If you really have
parent circuits with non-empty pre/post fuseactions, you'll need a
base controller and extend it for each 'circuit' that has the same
parent circuit.
> 2. My directories are filled with stuff like:
>
> act_*.cfm // Calling the CFC and displaying messages are done here.
Maps to a method on a controller.
> dsp_*.cfm // Display stuff
Maps to a view.
> *.cfc // The actual action happens in the CFC. I like keeping my
> CFCs silent and returning boolean for success or failure
Maps to a model CFC or a service CFC.
> 3. My Plugin directory has
>
> security.cfm // reads the permissions tag of off circuit and if
> fails, will throw an exception
Probably maps to a controller() call in setupRequest() in your Application.cfc.
> exception.cfm // If security exception, go to login page (default
> page), else show fancy error message and log error.
Maps to onError() in Application.cfc.
> 4. What exactly is the rc thing? Fusebox does not have it
rc = request context = equivalent to Fusebox's attributes scope.
Hope that helps?
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/