CodeIgniter v4.7 API

AutoRouterInterface

Expected behavior of a AutoRouter.

Table of Contents

Methods

getRoute()  : array{string|null, string, string, list}
Returns the directory name, controller name, controller method, and any parameters for the given URI and HTTP verb.

Methods

getRoute()

Returns the directory name, controller name, controller method, and any parameters for the given URI and HTTP verb.

public getRoute(string $uri, string $httpVerb) : array{string|null, string, string, list}
Parameters
$uri : string
$httpVerb : string

HTTP verb like GET,POST

Return values
array{string|null, string, string, list}
On this page

Search results