Overview

Namespaces

  • Net
    • Bazzline
      • Component
        • Template

Classes

  • AbstractFileBasedTemplate
  • AbstractTemplate
  • CallableComplexFileBasedTemplateManager
  • ComplexFileBasedTemplate
  • ExpressiveTemplateAdapter
  • FileBasedTemplate
  • RuntimeContentBasedTemplate
  • TemplateDumper

Interfaces

  • DelimiterInterface
  • TemplateInterface
  • Overview
  • Namespace
  • Class

Class ExpressiveTemplateAdapter

Net\Bazzline\Component\Template\ExpressiveTemplateAdapter implements Zend\Expressive\Template\TemplateRendererInterface
Namespace: Net\Bazzline\Component\Template
Located at ExpressiveTemplateAdapter.php
Methods summary
public
# injectBaseTemplate( Net\Bazzline\Component\Template\AbstractFileBasedTemplate $template )

Parameters

$template
public string
# render( string $name, array|object $params = [] )

Render a template, optionally with parameters.

Render a template, optionally with parameters.

Implementations MUST support the namespace::template naming convention, and allow omitting the filename extension.

Parameters

$name
$params

Returns

string
public
# addPath( string $path, string $namespace = null )

Add a template path to the engine.

Add a template path to the engine.

Adds a template path, with optional namespace the templates in that path provide.

Parameters

$path
$namespace
public Zend\Expressive\Template\TemplatePath
# getPaths( )

Retrieve configured paths from the engine.

Retrieve configured paths from the engine.

Returns

Zend\Expressive\Template\TemplatePath
public
# addDefaultParam( string $templateName, string $param, mixed $value )

Add a default parameter to use with a template.

Add a default parameter to use with a template.

Use this method to provide a default parameter to use when a template is rendered. The parameter may be overridden by providing it when calling render(), or by calling this method again with a null value.

The parameter will be specific to the template name provided. To make the parameter available to any template, pass the TEMPLATE_ALL constant for the template name.

If the default parameter existed previously, subsequent invocations with the same template name and parameter name will overwrite.

Parameters

$templateName

Name of template to which the param applies; use TEMPLATE_ALL to apply to all templates.

$param
Param name.
$value
PHP Template Component by bazzline.net API documentation generated by ApiGen