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\Object
-
ICanBoogie\Routing\Controller
Direct known subclasses
Methods summary
protected
string|null
|
|
protected
|
|
protected
|
|
protected
ICanBoogie\HTTP\Response
|
|
final public
ICanBoogie\HTTP\Response|mixed
|
|
abstract protected
ICanBoogie\HTTP\Response|mixed
|
|
protected
mixed
|
#
last_chance_get( string $property, boolean & $success )
Tries to get the undefined property from the application. |
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. |
public read-only
ICanBoogie\Core
|
$app
The application. |
public read-only
ICanBoogie\Module
|
$module
The module defining the route. (This getter is provided by the icanboogie/module package) |
public read-only
ICanBoogie\ActiveRecord\Model
|
$model
The primary model of the module. (This getter is provided by the icanboogie/module package) |
public read-only
ICanBoogie\Events
|
$events
Provided through prototype getters or through |