Class Controller
A route controller.
Accessing the application's properties
The class tries to retrieve undefined properties from the application, so the following code yields the same results:
<?php $this->app->models # or $this->models
But because request
is defined by the controller the following code might not yield the same
results:
<?php $this->app->request # or $this->request
- ICanBoogie\Prototyped
- ICanBoogie\Routing\Controller
Methods summary
protected
string|null
|
|
protected
ICanBoogie\HTTP\Request
|
|
protected
|
|
protected
ICanBoogie\HTTP\Response
|
|
final public
ICanBoogie\HTTP\Response|mixed
|
|
abstract protected
ICanBoogie\HTTP\Response|mixed
|
|
public
ICanBoogie\HTTP\RedirectResponse
|
#
redirect(
Redirects the request. |
public
mixed
|
|
protected
ICanBoogie\HTTP\Response|mixed
|
Properties summary
Magic properties
public
ICanBoogie\HTTP\Response
|
$response
|
public read-only
string
|
$name
The name of the controller. |
public read-only
ICanBoogie\HTTP\Request
|
$request
The request being dispatched. |
public read-only
|
$route
The route being dispatched. |