I¹d create an ObjectService for each business objetc (UserService, ArticleService, etc.). Have that act as an API to your Gateway and DAO and only call the Service (and the business object itself) from your controller. That way you can reuse the methods between controllers.
Best Wishes, Peter On 11/27/06 11:30 PM, "Derek P." <[EMAIL PROTECTED]> wrote: > Hi everyone, > > > I¹ve been scouring the internet for a bit now, and I haven¹t found an answer > yet > > > Where does reactor code belong in model-glue? I¹ve been writing it all into > the controllerbecause I thought, > well reactor is a model generator in a senseso it would be redundant to add > it to another CFC? But maybe I¹m wrong > > > > This came up because I realize that I have a OO Query I wrote that I want to > use in more than one place..suddenly I am feeling > like I have replaced a convention with an old practiceso should I put the > Reactor code to create a query in its own CFC and call that? > > Thanks! > > - Derek > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > -- > Reactor for ColdFusion Mailing List > [email protected] > Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
