> Is that the best way to do it? Or, should the file components 
> addFile()
> method call addContent() like so.

If your intent is to do ONE thing - and it's taking two calls, then yes,
addFile should probably call addContent. If you intent is to do TWO
things and you may need to do ONE of those later, then I'd keep them
separated. It's all in how you plan on using it.

> file.cfc
> <cfcomponent displayname="file" extends="content">
> ..
> 
> If I went this route, wouldn't the file component's addFile() method
> require the content component's arguments as well as it's own?

Correct, unless you can chain them. Maybe arg 1 to add1 can
automatically be passed as arg N to the parent method.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to