Overview

Namespaces

  • momentphp
    • exceptions
    • interfaces
    • middlewares
    • providers
    • traits
  • None

Classes

  • App
  • Bundle
  • Cache
  • CallableResolver
  • Config
  • Controller
  • Database
  • DebugInfo
  • Error
  • ExceptionHandler
  • FlashMessages
  • Helper
  • Log
  • Middleware
  • Model
  • ObjectCache
  • Provider
  • Registry
  • Router
  • Settings
  • SmartyViewEngine
  • Template
  • TwigViewEngine
  • View
  • Overview
  • Namespace
  • Class

Class TwigViewEngine

TwigViewEngine

momentphp\TwigViewEngine implements momentphp\interfaces\ViewEngineInterface
Namespace: momentphp
Located at TwigViewEngine.php
Methods summary
public
# __construct( array $options = [] )

Constructor

Constructor

Parameters

$options
public string
# render( string $template, array $data = [], null|string $bundle = null )

Render template content

Render template content

Parameters

$template
$data
$bundle

Returns

string

Implementation of

momentphp\interfaces\ViewEngineInterface::render()
public boolean
# exists( string $template, null|string $bundle = null )

Check if given template exists

Check if given template exists

Parameters

$template
$bundle

Returns

boolean

Implementation of

momentphp\interfaces\ViewEngineInterface::exists()
protected string
# template( string $template, null|string $bundle = null )

Return template path

Return template path

Parameters

$template
$bundle

Returns

string
Properties summary
public Twig_Environment $twig

Twig

Twig

#
MomentPHP API documentation generated by ApiGen