Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • Template
  • TemplateContext
  • TemplateEvent
  • TemplatingEngine
  • TwigEnvironment
  • TwigTemplate
  • TwigTemplatingProvider
  • Overview
  • Namespace
  • Class

Class Template

Class representation of a template.

Namespace: Autarky\TwigTemplating
Located at Template.php
Methods summary
public
# __construct( string $name, array $context = array() )

Parameters

$name
$context
public string
# getName( )

Get the name of the template.

Get the name of the template.

Returns

string
public Autarky\TwigTemplating\TemplateContext
# getContext( )

Get the template's context.

Get the template's context.

Returns

Autarky\TwigTemplating\TemplateContext
Properties summary
protected string $name

The name of the template - usually its file path.

The name of the template - usually its file path.

#
protected Autarky\TwigTemplating\TemplateContext $context

The context of the template.

The context of the template.

#
Autarky Framework API documentation generated by ApiGen