This absolutely should be done in the model. Database interaction is only a small part of what the Model is supposed to do. Can you go into more detail about why you think this is weird? Or am I misunderstanding your intent?
On Jan 10, 2008 3:01 PM, Raymond Camden <[EMAIL PROTECTED]> wrote: > > Imagine the following situation. > > You have a typical MVC type application for a book seller, let's call > em RioGrande. > > One part of the site is a Genre CRUD. This lets me define Genres for my > books. > > I decide that I will want a library of graphics associated with the > genres, so I cna upload pictures of chicks with laser guns for SciFi > or monsters for horror. To better organize the media, I'll use > > /images/genres/XXXX > > where XXX is a url-safe version of the genre name. > > So now when I save genres, I also need to do file system work. > > This seems like it would be a natural part of the model, wouldn't it? > For example, my genre DAO may simply do a <cfdirectory> after it saves > the record. > > For some reason I just feel weird doing non-DB stuff in the model. > -- > > =========================================================================== > Raymond Camden, Camden Media > > Email : [EMAIL PROTECTED] > Blog : www.coldfusionjedi.com > AOL IM : cfjedimaster > > Keep up to date with the community: http://www.coldfusionbloggers.org > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
