set404Override(function() { * // Do something here * }); * * Example: * public $override404 = 'App\Errors::show404'; */ public ?string $override404 = null; /** * 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. */ public bool $autoRoute = false; /** * If TRUE, will enable the use of the 'prioritize' option * when defining routes. * * Default: false */ public bool $prioritize = false; /** * Map of URI segments and namespaces. For Auto Routing (Improved). * * The key is the first URI segment. The value is the controller namespace. * E.g., * [ * 'blog' => 'Acme\Blog\Controllers', * ] * * @var array [ uri_segment => namespace ] */ public array $moduleRoutes = []; }