I would imagine that this would go in the cfm file. One thing about OO programming is to always separate your presentation layer (CFM file) from your login file (CFC file). Besides, that I think that you try to put code outside of a cfcomponent wrapper in a CFC, that it will throw an error.
Jordan
Chris Gomez <[EMAIL PROTECTED]> wrote:
Chris Gomez <[EMAIL PROTECTED]> wrote:
I'm lost here. Do I put the cfscript into the .cfc or .cfm file? And,
how do I reference the myobj in the cfm file?
On Wed, 15 Dec 2004 13:25:58 -0600, Phillip Holmes
<[EMAIL PROTECTED]>wrote:
>
> >what do I do with the cfinvoke and cfinvokeargument?
>
> Trash those nasty tags. I don't use them. The code I posted replace those
> tags. Once you call your object, your methods therein will be available
> without calling the object again.
>
> Example:
>
>
>
> myobj = CreateObject('component','mycomponent');
> // after your opbject in instantiated, you can call any function contained
> in your object without calling the component again.
> myobj.mymethod1();
> myobj.mymethod2();
> myobj.mymethod3();
> myobj.mymethod4();
>
& gt;
>
> Regards,
>
> Phil
>
> ---
> [This E-mail has been scanned for viruses.]
>
> ----------------------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To unsubscribe:
> http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe:
> http://www.dfwcfug.org/form_MemberRegistration.cfm
>
>
----------------------------------------------------------
To post, send email to [EMAIL PROTECTED]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm
