Configuration
Configuration
addFormat()— Adds a new MIME type to your CFWheels application for use with responding to multiple formats.collection()—constraints()— Set variable patterns to use for matching.controller()—createMigration()— Creates a migration file. Whilst you can use this in your application, the recommended useage is via either the CLI or tdelete()— Create a route that matches a URL requiring an HTTPDELETEmethod. We recommend using this matcher to exposend()— Call this to end a nested routing block or the entire route configuration. This method is chained on a sequence of routiget()— Create a route that matches a URL requiring an HTTMLGETmethod. We recommend only using this matcher to exget()— Returns the current setting for the supplied CFWheels setting or the current default for the supplied CFWheels functiongetAvailableMigrations()— Searches db/migrate folder for migrations. Whilst you can use this in your application, the recommended useage is via eigetCurrentMigrationVersion()— Returns current database version. Whilst you can use this in your application, the recommended useage is via either themapper()— Returns the mapper object used to configure your application’s routes. Usually you will use this method inconfig/member()—migrateTo()— Migrates database to a specified version. Whilst you can use this in your application, the recommended useage is via eitmigrateToLatest()— Shortcut function to migrate to the latest versionnamespace()— Scopes any the controllers for any routes configured within this block to a subfolder (package) and also adds the packagpackage()— Scopes any the controllers for any routes configured within this block to a subfolder (package) without adding the packapatch()— Create a route that matches a URL requiring an HTTPPATCHmethod. We recommend using this matcher to exposepost()— Create a route that matches a URL requiring an HTTPPOSTmethod. We recommend using this matcher to exposeput()— Create a route that matches a URL requiring an HTTPPUTmethod. We recommend using this matcher to expose aredoMigration()— Reruns the specified migration version. Whilst you can use this in your application, the recommended useage is via eitheresource()— Create a group of routes that exposes actions for manipulating a singular resource. A singular resource exposes URL pattresources()— Create a group of routes that exposes actions for manipulating a collection of resources. A plural resource exposes URLroot()— Create a route that matches the root of its current context. This mapper can be used for the application’s web root (orscope()— Set any number of parameters to be inherited by mappers called within this matcher’s block. For example, set a package oset()— Use to configure a global setting or set a default for a function.wildcard()— Special wildcard matching generates routes with `