setContentType

Sets the content type for the returned page so the browser renders it properly. For example, a content type (file-format type or MIME type) of text/plain, application/excel, or text/xml.

Type and Usage

Parameters

The only parameter is the content type.

Output

  • Returns TRUE if the function is successful.

  • Returns FALSE if the function fails.

Example

<$setContentType("text/plain")$>