Hi
Im having a right nightmare trying to work this one out and have been trawling the net for hours.
- Ive got CFC called "BOB" with a function "dosomething"
- "dosomething" has a number of arguments he can take
- I then have another CFC "BOB" which extends the first "BOB"
- He also has a function "dosomething", and hes fine for extending "dosomething", but what about overiding
I want my primary "dosomething" to have one of his arguments changed by the extender "dosomething".
So whenever my extender says 'hey "dosomething" I actually want your arguments.id to be 3' the primary function gets the message.
Im sure this is possible, and ive seen some articles on calling it with "super", but no working examples.
Can anyone supply the code I can use to change this argument?
Many thanks in advance
Dave
Im having a right nightmare trying to work this one out and have been trawling the net for hours.
- Ive got CFC called "BOB" with a function "dosomething"
- "dosomething" has a number of arguments he can take
- I then have another CFC "BOB" which extends the first "BOB"
- He also has a function "dosomething", and hes fine for extending "dosomething", but what about overiding
I want my primary "dosomething" to have one of his arguments changed by the extender "dosomething".
So whenever my extender says 'hey "dosomething" I actually want your arguments.id to be 3' the primary function gets the message.
Im sure this is possible, and ive seen some articles on calling it with "super", but no working examples.
Can anyone supply the code I can use to change this argument?
Many thanks in advance
Dave