Skip to content

Configuration

Configuration

  • addFormat() — Adds a new MIME type to your CFWheels application for use with responding to multiple formats.
  • collection() — A collection route doesn’t require an id because it acts on a collection of objects.
  • constraints() — Set variable patterns to use for matching.
  • controller() — Considered deprecated as this doesn’t conform to RESTful routing principles; Try not to use this.
  • delete() — Create a route that matches a URL requiring an HTTP DELETE method. We recommend using this matcher to expos
  • end() — Call this to end a nested routing block or the entire route configuration. This method is chained on a sequence of routi
  • get() — Create a route that matches a URL requiring an HTTP GET method. We recommend only using this matcher to exp
  • get() — Returns the current setting for the supplied CFWheels setting or the current default for the supplied CFWheels function
  • mapper() — Returns the mapper object used to configure your application’s routes. Usually you will use this method in config/
  • member() — Scope routes within a nested resource which require use of the primary key as part of the URL pattern;
  • namespace() — Scopes any the controllers for any routes configured within this block to a subfolder (package) and also adds the packag
  • package() — Scopes any the controllers for any routes configured within this block to a subfolder (package) without adding the packa
  • patch() — Create a route that matches a URL requiring an HTTP PATCH method. We recommend using this matcher to expose
  • post() — Create a route that matches a URL requiring an HTTP POST method. We recommend using this matcher to expose
  • put() — Create a route that matches a URL requiring an HTTP PUT method. We recommend using this matcher to expose a
  • resource() — Create a group of routes that exposes actions for manipulating a singular resource. A singular resource exposes URL patt
  • resources() — Create a group of routes that exposes actions for manipulating a collection of resources. A plural resource exposes URL
  • root() — Create a route that matches the root of its current context. This mapper can be used for the application’s web root (or
  • scope() — Set any number of parameters to be inherited by mappers called within this matcher’s block. For example, set a package o
  • set() — Use to configure a global setting or set a default for a function.
  • wildcard() — Special wildcard matching generates routes with `