Contents > Developing ColdFusion MX Applications > Writing and Calling User-Defined Functions > Creating user-defined functions > Rules for function definitions | ![]() ![]() ![]() | |
|
The following rules apply to functions that you define using CFScript or the
cffunction
tag:
You can define a function in the following places:
cfinclude
tag. The cfinclude
tag must be executed before the function gets
called. For example, you can define all your application's functions on a
single page and place a cfinclude
tag at the top of pages that
use the functions.
For recommendations on selecting where you define functions, see the sections Using Application.cfm and function include files and Specifying the scope of a function.
| ||
Contents > Developing ColdFusion MX Applications > Writing and Calling User-Defined Functions > Creating user-defined functions > Rules for function definitions | ![]() ![]() ![]() |