Lucee Function Reference

invoke()

invokes a function/operation of the given object and if given object is a string, Lucee tries to load as component.

Example

invoke(any object,string name,[any arguments]):object

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
object any  Yes a component, struct or scope that holds a function, can also be the name of a component, in this case the component get loaded. it can be empty string, in this case the method invokes from the same cfm page or component  
name string  Yes name of the function/operation  
arguments any  No arguments to pass to the function/operation