You are viewing documentation for v1.1.x. Change

renderText()

Description

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

Function Syntax

renderText(text)

Parameters

Parameter Type Required Default Description
text any Yes The text to be rendered.

Examples

<!--- Render just the text "Done!" to the client --->
<cfset renderText("Done!")>

<!--- Render serialized product data to the client --->
<cfset products = model("product").findAll()>
<cfset renderText(SerializeJson(products))>