Skip to main content
Inspiring
October 26, 2012
Question

<cfinvoke component="12robots" method="isItEvil()">

  • October 26, 2012
  • 12 replies
  • 1845 views

In a recent discussion 12robots disparaged the cfinvoke tag with words such as:

"cfinvoke is an evil beast that serves a dark master. It is of occasional use, but in 99 out of 96 cases, it is ugly, ugly, and ugly"

While I rarely use it myself, I can think of one of those occasional uses.  Every once in awhile someone will post a question describing a situation where there hosting provider disallows the cfobject tag and createobject function.  That pretty much leave cfinvoke as the only alternative.

    This topic has been closed for replies.

    12 replies

    12Robots
    Participating Frequently
    October 27, 2012

    There, of course, is one other alternative. 

    Jason

    BKBK
    Community Expert
    Community Expert
    October 28, 2012

    12Robots wrote:

    There, of course, is one other alternative. 

    Naturally. <cfcomponent extends="12Robots">

    Inspiring
    October 28, 2012

    Naturally. <cfcomponent extends="12Robots">

    You'd still have to invoke the component somehow.

    I presumed he meant the new operator.

    And, indeed, if it's a persistent component, then there's entityNew() too.

    --

    Adam