Return to v2.0 docs

controller()


Global Helpers Miscellaneous Functions any controller model migrator


Creates and returns a controller object with your own custom name and params. Used primarily for testing purposes.

Name 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).
testController = controller("users", params);

Related Functions

Miscellaneous Functions