| That depends... if you have a controller (like you would in MG or "listener" in M2) then this operation should go in your controller. :) If not, it depends on how you're laying out your app. If you just have a page-based model (so that "/folder/myPage.cfm" is your URL) then yeah, you may want to put it in your view... only because you don't have anywhere else to put it. You COULD rig up a simple "switchbox" of sorts that checks for certain url/form variables and calls actions either on reactor objects or via another set of higher-level objects... you could call them "home built controllers". You'd have something like MyAppController with methods like saveUserData() that would use the CollectionBeanMaker and the Reactor objects to do the job. Something like that I'd stick in Application.cfm and have it do the jobs before the views got involved: <cfswitch _expression_="#url.action#"> <cfcase value="saveUserProfile"> <cflock name="SaveUser" type="exclusive" timeout="10"> <cfset User = application.Controller.saveUser(form,session.User)> </cflock> </cfcase> {etc...} </cfswitch> I'll grant you this could get to be a LOT of work (and is why frameworks were built to begin with, to make this possible as generically as can be so it can be reused for many apps) but for small, simple little apps with no tremendous complexity this might work out ok. HTH, J ------------------------------------------------ Jared C. Rypka-Hauer Continuum Media Group LLC Member, Team Macromedia - ColdFusion "That which does not kill me makes me stranger." - Yonah Schmeidler On Feb 28, 2006, at 7:23 PM, Daniel Short wrote:
|
- Re: [Reactor For CF] New features: Table and Field alias... Sean Corfield
- RE: [Reactor For CF] New features: Table and Field ... Doug Hughes
- Re: [Reactor For CF] New features: Table and Fi... Sean Corfield
- [Reactor For CF] Cutting out Repetive setXXX(FORM.XXX) Daniel Short
- RE: [Reactor For CF] Cutting out Repetive setXXX(FO... Doug Hughes
- RE: SPAM-LOW: RE: [Reactor For CF] Cutting out... Daniel Short
- Re: SPAM-LOW: RE: [Reactor For CF] Cutting... Jared Rypka-Hauer
- RE: SPAM-LOW: Re: SPAM-LOW: RE: [Reac... Daniel Short
- Re: [Reactor For CF] Cutting out Repetive setXXX(FO... Sean Corfield
- RE: [Reactor For CF] Cutting out Repetive setXX... Daniel Short
- Re: [Reactor For CF] Cutting out Repetive s... Jared Rypka-Hauer
- RE: [Reactor For CF] New features: Table and Field alia... Chris Blackwell
- RE: [Reactor For CF] New features: Table and Field alia... Miller, Ryan

