Back
provides()
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.
provides("html,xml,json");
Copied!