com\setasign\SetaFramework\Controller
AbstractTwigController Class AbstractTwigController
File: /SetaFramework/src/Controller/AbstractTwigController.php
This controller can be used to use twig as view layer. Note: unlike the other controller types you have to render the view by yourself.
Class hierarchy
Implements
Summary
Properties
$renderedView
protected ?string AbstractTwigController::$renderedView
$response
protected ?\Psr\Http\Message\ResponseInterface AbstractController::$response
$twig
protected AbstractTwigController::$twig
Methods
__construct()
public AbstractTwigController::__construct ()
Parameters
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
- $twig : ViewTwigEnvironment
getParam()
Returns a param if it exists otherwise this will return $default
Parameters
- $name : string
- $default : mixed
setParams()
Set a array of params
Note: The params will be merged with the existing params!!
Parameters
- $params : array
