ICanBoogie
  • Documentation
  • API Reference
  • Render 0.6.x
Namespaces
  • ICanBoogie
    • Render
      • EngineCollection
      • Renderer
      • TemplateResolver
Classes
  • BasicTemplateResolver
  • EngineCollection
  • EngineNotAvailable
  • EngineNotDefined
  • PHPEngine
  • Renderer
  • StringObject
  • TemplateName
Interfaces
  • Engine
  • Exception
  • TemplateResolver
  • TemplateResolverDecorator
Traits
  • TemplateResolverDecoratorTrait
  • TemplateResolverTrait
Exceptions
  • InvalidRenderTarget
  • TemplateNotFound
Functions
  • get_engines
  • get_renderer
  • get_template_resolver
  • render

Interface TemplateResolver

An interface for template resolvers.

Direct known implementers

ICanBoogie\Render\BasicTemplateResolver, ICanBoogie\Render\TemplateResolverDecorator

Namespace: ICanBoogie\Render
Located at TemplateResolver.php

Methods summary

public resolve( string $name, array $extensions, array & $tried = [] ) : string|false

Returns the pathname to the matching template.

Returns the pathname to the matching template.

Parameters

$name
The base name of the template.
$extensions
The supported extensions.
$tried
Tried pathname collection.

Returns

string|false
The pathname to the matching template or false if none match.
Render 0.6.x – Check on GitHub – API documentation generated by ApiGen