Miscellaneous
provides()
Signature
Section titled “Signature”provides() — returns any
Description
Section titled “Description”Defines formats that the controller will respond with upon request. The format can be requested through a URL variable called format, by appending the format name to the end of a URL as an extension (when URL rewriting is enabled), or in the request header.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
formats | string | yes | — | Formats to instruct the controller to provide. Valid values are html (the default), xml, json, csv, pdf, and xls. |
Examples
Section titled “Examples”provides("html,xml,json");