Ok, I think I figured this out.

I think I don’t need an init function, since all I’m doing is creating a library of functions, not some cohesive object.

However, if I’m wrong in this assessment, I would love to hear suggestions.

 

I can save the CFC in the CustomTags folder of my server and thus just reference the CFC by name.

 

It was nice talking to myself here. J

Cheers,

Ali

 


From: Ali Awan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 10:00 AM
To: [email protected]
Subject: [CFCDev] global cfc's

 

I’ve been lurking on this list for quite a while now, and I feel pretty embarrassed for asking such an elementary question.

 

I’m thinking of creating a sort of UDF library that can be used by all my apps.

Does it make sense to create a Component that holds all the functions?  In such a case, what would an init function hold.

For example, if I have a bunch of generic Validation functions, would I need an init function for the CFC?  If so, what would it look like?

 

Also, where would I need to put the CFC on the server so that it is accessible to all my apps?

I’m thinking along the lines of custom tags, where we could just put them in the CustomTags folder and they are accessible to all.

 

Is there such a folder for CFC’s?

 

Thanks,

Ali

Reply via email to