메소드 |
설명 |
|
__construct ( Request $request, Response $response ) : void |
Creates a new controller instance. Each controller must be constructed
with the request object that created it. |
|
__get ( mixed $key ) : array |
Have a standalone action context. A context should not be within a template because not
all request require a template, thus, we allow the controller to handle the context for
later manipulation. We use magic methods to manipulate the data: |
|
__set ( string $key, mixed $value ) : mixed |
Have a standalone action context. A context should not be within a template because not
all request require a template, thus, we allow the controller to handle the context for
later manipulation. We use magic methods to manipulate the data: |
|
after ( ) : void |
Renders the template if necessary |
|
before ( ) : void |
Before the action gets executed we need run a few processes. |
|