Urlaubsplan
Lade ...
Suche ...
Keine Treffer
Config::Routing Klassenreferenz
Klassendiagramm für Config::Routing:
Zusammengehörigkeiten von Config::Routing:

Öffentliche Attribute

array $routeFiles
 
string $defaultNamespace = 'App\Controllers'
 Controller in der Anwendung'.
 
string $defaultController = 'FrontendWebsite'
 
string $defaultMethod = 'index'
 
bool $translateURIDashes = false
 
string $override404 = null
 
bool $autoRoute = false
 
bool $prioritize = false
 
bool $multipleSegmentsOneParam = false
 
array $moduleRoutes = []
 
bool $translateUriToCamelCase = false
 

Ausführliche Beschreibung

Routing configuration

Dokumentation der Datenelemente

◆ $autoRoute

bool Config::Routing::$autoRoute = false

If TRUE, the system will attempt to match the URI against Controllers by matching each segment against folders/files in APPPATH/Controllers, when a match wasn't found against defined routes.

If FALSE, will stop searching and do NO automatic routing.

◆ $defaultController

string Config::Routing::$defaultController = 'FrontendWebsite'

For Auto Routing. The default controller to use when no other controller has been specified.

Default: 'Home'

◆ $defaultMethod

string Config::Routing::$defaultMethod = 'index'

For Defined Routes and Auto Routing. The default method to call on the controller when no other method has been set in the route.

Default: 'index'

◆ $defaultNamespace

string Config::Routing::$defaultNamespace = 'App\Controllers'

Controller in der Anwendung'.

For Defined Routes and Auto Routing. The default namespace to use for Controllers when no other namespace has been specified.

Default: 'App

◆ $moduleRoutes

array Config::Routing::$moduleRoutes = []

◆ $multipleSegmentsOneParam

bool Config::Routing::$multipleSegmentsOneParam = false

For Defined Routes. If TRUE, matched multiple URI segments will be passed as one parameter.

Default: false

◆ $override404

string Config::Routing::$override404 = null

Sets the class/method that should be called if routing doesn't find a match. It can be the controller/method name like: Users::index

This setting is passed to the Router class and handled there.

If you want to use a closure, you will have to set it in the routes file by calling:

$routes->set404Override(function() { // Do something here });

Example: public $override404 = 'App\Errors::show404';

◆ $prioritize

bool Config::Routing::$prioritize = false

For Defined Routes. If TRUE, will enable the use of the 'prioritize' option when defining routes.

Default: false

◆ $routeFiles

array Config::Routing::$routeFiles
Initialisierung:
= [
APPPATH . 'Config/Routes.php',
]

◆ $translateURIDashes

bool Config::Routing::$translateURIDashes = false

For Auto Routing. Whether to translate dashes in URIs for controller/method to underscores. Primarily useful when using the auto-routing.

Default: false

◆ $translateUriToCamelCase

bool Config::Routing::$translateUriToCamelCase = false

For Auto Routing (Improved). Whether to translate dashes in URIs for controller/method to CamelCase. E.g., blog-controller -> BlogController

If you enable this, $translateURIDashes is ignored.

Default: false


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: