|
Fusebox
|
The instantiate verb allows you to create an object which has been defined using a CFC. It is used to create the object which is stored in memory and can then be called with the invoke verb. It was introduced in Fusebox 4.1, and has been improved in Fusebox 5. In Fusebox 4.1 you must place any arguments in the <instantiate> tag: For Fusebox 5 it is possible to use separate <argument> tags with <instantiate>, the following is equivalent the Fusebox 4 version above: Note the differences in the way strings and evaluated arguments are specified. You can also specify positional (unnamed) arguments for <instantiate>: You can mix positional arguments and named arguments, although all positional arguments should precede any named arguments, just as in a regular ColdFusion method call using <cfinvokeargument>. Note that although the Fusebox 4.1 form (arguments on <instantiate>) is not deprecated in Fusebox 5 - it is possible that it may be deprecated in a future release of Fusebox. |