which one i can use cfinvoke /cfobject

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CFFAN
    New Member
    • Dec 2008
    • 29

    #1

    which one i can use cfinvoke /cfobject

    Hi,
    one doubt regarding cfinvoke /cfobject

    i have one cfc with more than 2 function called comp1.cfc
    i have another cfc with more than 2 function called comp2.cfc

    in the 2nd one (comp2.cfc) use one same function in comp1.cfc.
    which way is better CFINVOKE or Createobject for tht componet?
    why?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    cfobject creates an instance of a component while cfinvoke runs a method in a component. Which one you use depends on whether you plan to use more methods within that component. See this link for a discussion.

    Comment

    Working...