FrontController
Loads controller classes from the Wordpress "template" files. e.g. single.php, single-some-post-type.php, page.php, etc.
Tags
Table of Contents
- run() : Controller
- Loads a controller from the DI container and invokes the passed method name ($method).
Methods
run()
Loads a controller from the DI container and invokes the passed method name ($method).
public
static run(string $controllerClass, string $method[, array<string|int, mixed> $params = [] ]) : Controller
Parameters
- $controllerClass : string
- $method : string
- $params : array<string|int, mixed> = []
-
Optional method arguments passed as key/value.