controller()
Description
Creates and returns a controller object with your own custom name and params. Used primarily for testing purposes.
Function Syntax
controller(name [, params ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name |
string |
Yes | |
Name of the controller to create. |
params |
struct |
No | [runtime expression] |
The params struct (combination of form and URL variables). |
Examples
<cfset testController = controller("users", params)>
