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 cfcdev@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to