RE: [CFCDEV] An example of a NotificationService

2007-04-23 Thread Jaime Metcher
We like to put all our website copy (i.e. text as in copywriting) and layout into files in a particular directory and then train our web publishers and marketing types to only change things in there. That includes emails that go to users. So inside the send() method there'd be something like:

Re: [CFCDEV] An example of a NotificationService

2007-04-23 Thread Andrew Scott
There is also the added bonus of adding a factory to the service as well. The only reason you would do this though would be in our case we switch between IMS and cfmail depending on what we need. On 4/23/07, Jaime Metcher [EMAIL PROTECTED] wrote: We like to put all our website copy (i.e.

[CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Brent Nicholas
Howdy all - Does anyone know why I can't access the the 'application.applicationname' variable while in an extended CFC? Ex: wwwroot/Application.cfc --- cfcomponent output=false cfset this.name=CFLHDIntranetcfset this.sessionmanagement=yes cfset

RE: [CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Dave Watts
Does anyone know why I can't access the the 'application.applicationname' variable while in an extended CFC? I don't know, but why not just use the local name variable you're creating in Application.cfc? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides

RE: [CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Brent Nicholas
Ok, it's Monday the answer is: this.name 'sigh' :)Brent Nicholas - There, I guess King George will be able to read that! - John Hancock From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: [CFCDEV] access to applicationname in extended CFCDate: Mon, 23 Apr 2007 15:03:47 -0600 Howdy all -

Re: [CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Aaron Roberson
You generally do not want to access application and session variables inside of CFCs. I suggest getting LightWire or ColdSpring and injecting the application variable into the constructor, set it to a local scope and then access it using this.variablename. -Aaron You are subscribed to cfcdev.

RE: [CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Dave Watts
You generally do not want to access application and session variables inside of CFCs. I suggest getting LightWire or ColdSpring and injecting the application variable into the constructor, set it to a local scope and then access it using this.variablename. There's nothing wrong with

Re: [CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Aaron Roberson
There's nothing wrong with accessing those variables within Application.cfc, though. Yep. I figured from the post that he was accessing application variables directly from other CFCs. Is anyone extending Application.cfc? I never thought of that before. -Aaron You are subscribed to cfcdev.

RE: [CFCDEV] access to applicationname in extended CFC

2007-04-23 Thread Brent Nicholas
Aaron - Thanks for the reply. Ideally I could learn the techniques you mentioned, though being the only developer on staff I can't take the risk of using some of the more interesting uses the cfc's have taken on. I see the value, I just have to show results faster than I feel I can learn OO