View controller.
Constructor.
| Type | Description |
|---|---|
| mako\Request | A request object |
| mako\Response | A response object |
NULL
public function __construct($request, $response)
{
parent::__construct($request, $response);
$this->view = new Vista($this->viewName);
}
This method runs after the action.
NULL
public function after()
{
$this->response->body($this->view);
}
This method runs before the action.
NULL
public function after()
{
$this->response->body($this->view);
}