Skip to content

Configuration

Configuration

  • addFormat() — Registers a new MIME type in your Wheels application for use with responding to multiple formats. This is helpful when y
  • collection() — Defines a collection route in your Wheels application. Collection routes operate on a set of resources and do not requir
  • constraints() — Defines variable patterns for route parameters when setting up routes using the Wheels mapper(). This allows you to rest
  • controller() — The controller() function in Wheels is used to define routes that point to a specific controller. However, it is conside
  • 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 value of a Wheels configuration setting or the default value for a specific function argument. It ca
  • mapper() — Returns the mapper object used to configure your application’s routes. Usually you will use this method in app/con
  • member() — Scope routes within a nested resource which require use of the primary key as part of the URL pattern;
  • namespace() — The namespace() function in Wheels is used to group controllers and routes under a specific namespace (subfolder/package
  • package() — Scopes the controllers for any routes defined inside its block to a specific subfolder (package) without adding the pack
  • 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() — Defines a route that matches the root of the current context. This could be the root of the entire application (like the
  • scope() — The scope() function in Wheels is used to define a block of routes that share common parameters such as controller, pack
  • set() — Used to configure global settings or set default argument values for Wheels functions. It can be applied to core functio
  • wildcard() — Automatically generates dynamic routes for your controllers using placeholders like [controller], [action], and optional