com\setasign\SetaFramework\Controller

AbstractViewController Class AbstractController

File: /SetaFramework/src/Controller/AbstractViewController.php

Class hierarchy

Implements

Summary

Properties

$response

protected ?\Psr\Http\Message\ResponseInterface AbstractController::$response

$view

Contains the view object of the controller

$viewScript


Methods

getParam()

public AbstractController::getParam (
string $name,
mixed $default = null
): ?mixed

Returns a param if it exists otherwise this will return $default

Parameters
$name : string
 
$default : mixed
 

getParams()

public AbstractController::getParams (
void
): array

Get all existing params

getResponse()

public AbstractController::getResponse (
void
): \Psr\Http\Message\ResponseInterface

getView()

renderView()

resetResponse()

public AbstractController::resetResponse (
void
): void

setParam()

public AbstractController::setParam (
string $name,
mixed $value
): ControllerInterface

Sets a param

Parameters
$name : string
 
$value : mixed
 

setParams()

Set a array of params

Note: The params will be merged with the existing params!!

Parameters
$params : array