Overview

Namespaces

  • Charcoal
    • View
      • Mustache
      • Php
      • Twig

Classes

  • AbstractEngine
  • AbstractLoader
  • AbstractView
  • GenericView
  • Renderer
  • ViewConfig
  • ViewServiceProvider

Interfaces

  • EngineInterface
  • LoaderInterface
  • ViewableInterface
  • ViewInterface

Traits

  • ViewableTrait
  • Overview
  • Namespace
  • Class

Interface ViewInterface

View Interface

Direct known implementers

Charcoal\View\AbstractView

Indirect known implementers

Charcoal\View\GenericView
Namespace: Charcoal\View
Located at Charcoal/View/ViewInterface.php
Methods summary
public string
# loadTemplate( string $templateIdent )

Load a template (from identifier).

Load a template (from identifier).

Parameters

$templateIdent
The template identifier to load..

Returns

string

Throws

InvalidArgumentException
If the template ident is not a string.
public string
# render( string $templateIdent, mixed $context = null )

Load a template (from identifier) and render it.

Load a template (from identifier) and render it.

Parameters

$templateIdent
The template identifier, to load and render.
$context
The view controller (rendering context).

Returns

string
public string
# renderTemplate( string $templateString, mixed $context = null )

Render a template (from string).

Render a template (from string).

Parameters

$templateString
The full template string to render.
$context
The view controller (rendering context).

Returns

string
API documentation generated by ApiGen