Question
Need Help On Extending a CFC
Hi,
If CFC "item" is initialised with an ID and every method in that CFC uses that ID to filter certain things, how can I extend this "item" CFC in another CFC called "ui" and still have access to its methods?
I am getting errors I think because what I want to extend is an initialised VERSION of that "item" CFC based on an ID, where as using the super.someFunction() in my "ui" CFC gives errors because presumably the methods I am calling know nothing about its initialised self.
Is this making sense?
What is the best way to do this? Do I have to pass an entire initialised version of the "item" CFC to the "ui" CFC as an argument? If so, how do I do this?
Sorry about my confusing post, I am teaching myself some bits and I can't seem to get my head around this.
Any help appreciated. Thanks,
Mikey.
If CFC "item" is initialised with an ID and every method in that CFC uses that ID to filter certain things, how can I extend this "item" CFC in another CFC called "ui" and still have access to its methods?
I am getting errors I think because what I want to extend is an initialised VERSION of that "item" CFC based on an ID, where as using the super.someFunction() in my "ui" CFC gives errors because presumably the methods I am calling know nothing about its initialised self.
Is this making sense?
What is the best way to do this? Do I have to pass an entire initialised version of the "item" CFC to the "ui" CFC as an argument? If so, how do I do this?
Sorry about my confusing post, I am teaching myself some bits and I can't seem to get my head around this.
Any help appreciated. Thanks,
Mikey.
