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 Template

Template

momentphp\Template uses momentphp\traits\ContainerTrait
Namespace: momentphp
Located at Template.php
Methods summary
public
# __construct( Interop\Container\ContainerInterface $container )

Constructor

Constructor

Parameters

$container
protected momentphp\Registry
# prepareRegistry( )

Prepare helpers registry

Prepare helpers registry

Returns

momentphp\Registry
public string
# cell( )

Render a cell

Render a cell

Returns

string
public string
# d( mixed $var )

Allow d() inside templates

Allow d() inside templates

Parameters

$var

Returns

string
public momentphp\Helper|momentphp\Registry
# __get( string $name )

Return helper

Return helper

Parameters

$name

Returns

momentphp\Helper|momentphp\Registry
public boolean
# __isset( string $name )

Dynamic properties inside Twig templates

Dynamic properties inside Twig templates

Parameters

$name

Returns

boolean

Link

http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties
public
# __clone( )

Clone

Clone

Methods used from momentphp\traits\ContainerTrait
container()
Properties summary
public momentphp\Registry $registry

Helpers registry

Helpers registry

#
public Psr\Http\Message\RequestInterface $request

Request

Request

#
public Psr\Http\Message\ResponseInterface $response

Response

Response

#
public array $vars

Variables for the template

Variables for the template

# []
Properties used from momentphp\traits\ContainerTrait
$app, $container
MomentPHP API documentation generated by ApiGen