• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Invoke

Explorer ,
Oct 31, 2012 Oct 31, 2012

Copy link to clipboard

Copied

Views

496

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 31, 2012 Oct 31, 2012

Copy link to clipboard

Copied

This page should point to the reference page for the CFINVOKE tag, especially for more on the "arguments" (which correspond to tag attributes).

The same would be true for any other functions that are essentially just function-based equivalents of existing CFML tags.


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 03, 2012 Dec 03, 2012

Copy link to clipboard

Copied

LATEST

Just a couple notes: 1) "cfcinstance" can be an empty string, 2) "arguments" can be an array.

Example:

<cfscript>

  function f() {return ARGUMENTS;}

  argumentArray = [1,2,3,4,5];

  writeDump(invoke("", "f", argumentArray));

</cfscript>

When function defines no arguments, positional order can be maintained via argumentArray.

Thanks!,

-Aaron

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation