Return to v2.5.0 docs


Controller Rendering Functions void controller

Instructs the controller to render specified text when it's finished processing the action.

Name Type Required Default Description
text string No The text to render.
status any No [runtime expression] Force request to return with specific HTTP status code.
// Render just the text "Done!" to the client

// Render serialized product data to the client
products = model("product").findAll();

Related Functions

Rendering Functions