Overview

Namespaces

  • Baguette
    • Application
    • Response
    • Serializer
    • Session

Classes

  • Helper
  • RawResponse
  • RedirectResponse
  • SerializedResponse
  • TwigResponse

Interfaces

  • ResponseInterface
  • Overview
  • Namespace
  • Class

Class TwigResponse

HTML Template Response

Baguette\Response\TwigResponse implements Baguette\Response\ResponseInterface
Namespace: Baguette\Response
Copyright: 2016 Baguette HQ
License: Apache-2.0
Author: USAMI Kenta tadsan@zonu.me
Located at Response/TwigResponse.php
Methods summary
public
# __construct( string $tpl_name, array $params = [], integer $status_code = 200 )

Parameters

$tpl_name
$params
$status_code
public array[]
# getResponseHeaders( )

Returns

array[]

Implementation of

Baguette\Response\ResponseInterface::getResponseHeaders()
public string
# render( Baguette\Application $app )

Parameters

$app

Returns

string

Implementation of

Baguette\Response\ResponseInterface::render()
public integer
# getHttpStatusCode( )

Returns

integer

Implementation of

Baguette\Response\ResponseInterface::getHttpStatusCode()
public static
# setTwigEnvironment( Twig_Environment $twig )

Parameters

$twig
Constants summary
string CONTENT_TYPE_HTML
# 'text/html; charset=utf-8'
Properties summary
protected static Twig_Environment $twig
#
public string $tpl_name
#
public array $params
#
public string|null $content_type
#
public integer $status_code
#
ξ ^ω^)ξ < Baguette Not Framework API documentation generated by ApiGen