Class BasicTemplateResolver
Resolves templates pathname.
-
ICanBoogie\Render\BasicTemplateResolver
implements
ICanBoogie\Render\TemplateResolver
uses
ICanBoogie\Render\TemplateResolverTrait
Namespace: ICanBoogie\
Render
Package: ICanBoogie\Render
Located at BasicTemplateResolver.php
Methods summary
public
resolve( string $name
, array $extensions
, array & $tried
= [] )
: string|false
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.
Inheritdoc
Implementation of
public
add_path( string $path
, integer $weight
= 0 )
: string|false
Parameters
Returns
string|false
The real path, or false
if the path was not added.
Inheritdoc
Implementation of
public
get_paths( void )
: array
Returns
array
Inheritdoc
Implementation of
resolve_path()
,
resolve_tries()
Properties summary
protected
$paths
: array
[]