Thanks for all the help!
I figured it out. Well, not really. I just moved everything around
back to what I needed and it just worked. I might have maybe spelled
variables wrong or something. LOL So odd.
2009/11/26 Chung Chow cyc...@annex.net
Hi all,
I'm trying to
Hi Kevin. I've read that whole site a couple of days ago. Good stuff.
But apart from making these utilities load in an application scope, I
was trying to find a better way accesing them object-wide I guess. I'm
worried aboout having to load all these utilities objects in a
application
Hi all,
I'm trying to instantiate an object either in the psuedo-contructor or
init of my cfc as a variable so I can use it within all my method inside
that cfc. For some reason when I call a method from that object I get a
Method not found error. I'm not sure if this is the best way of going
I believe you would want :
variables.errorMsg =
createObject(component, com.util.errorMessages).init();
On Wed, Nov 25, 2009 at 3:36 PM, Chung Chow cyc...@annex.net wrote:
Hi all,
I'm trying to instantiate an object either in the psuedo-contructor or
init of my cfc as a variable so I can
]
Sent: Wednesday, November 25, 2009 12:37 PM
To: cf-talk
Subject: Methods not found.
Hi all,
I'm trying to instantiate an object either in the
psuedo-contructor or init of my cfc as a variable so I can
use it within all my method inside that cfc. For some reason
when I call
-talk
Subject: Re: Methods not found.
I believe you would want :
variables.errorMsg =
createObject(component, com.util.errorMessages).init();
On Wed, Nov 25, 2009 at 3:36 PM, Chung Chow cyc...@annex.net wrote:
Hi all,
I'm trying to instantiate an object either in the
psuedo
You should not be var'ing your constructor variables.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Id check the following:
That your referring to the CFC in the same way you are defining them. (since
you say it works when defining with teh functions, I think this is most likely)
The method-access on the other CFCs.
That the init function of external CFCs are returning this.
You could also
(component,
com.util.imageManager).init();
variables.instGateway = createObject(component,
FeedsGateway).init(application.global);
/cfscript
-Original Message-
From: Chung Chow [mailto:cyc...@annex.net]
Sent: Wednesday, November 25, 2009 12:37 PM
To: cf-talk
Subject: Methods
-Original Message-
From: Charlie Stell [mailto:charlie.st...@gmail.com]
Sent: Wednesday, November 25, 2009 1:03 PM
To: cf-talk
Subject: Re: Methods not found.
Id check the following:
That your referring to the CFC in the same way you are
defining them. (since you say it works when
I'm not sure if this is the best way of going
about it so if anyone has a better idea, I'd like to hear about it. :)
You may like to take a look at 'dependecy injection' techniques
http://learn.objectorientedcoldfusion.org/wiki/Dependency_Injection
2009/11/26 Chung Chow cyc...@annex.net
Try the following -
Add a function to your cfc that will return variables.X - X being whatever
instantiated cfc you cant call the function of.
Dump the results of new function - this should help you debug.
~|
Want to reach
.
-Original Message-
From: Kevan Stannard [mailto:ke...@stannard.net.au]
Sent: Wednesday, November 25, 2009 1:56 PM
To: cf-talk
Subject: Re: Methods not found.
I'm not sure if this is the best way of going about it so if anyone
has a better idea, I'd like to hear about it. :)
You may
sorting through all the
damn terminology and concepts.
-Original Message-
From: Kevan Stannard [mailto:ke...@stannard.net.au]
Sent: Wednesday, November 25, 2009 1:56 PM
To: cf-talk
Subject: Re: Methods not found.
I'm not sure if this is the best way of going about it so
14 matches
Mail list logo