Class RelativeFallbackResolver

Summary

Fully Qualified Name: Zend\View\Resolver\RelativeFallbackResolver
Implements: ResolverInterface

Description

Relative fallback resolver - resolves to view templates in a sub-path of the currently set view model's template (if the current renderer has the `view_model` plugin set).

This allows for usage of partial template paths such as some/partial, resolving to my/module/script/path/some/partial.phtml, while rendering template my/module/script/path/my-view

Methods

Name Description Defined By
__construct() Constructor RelativeFallbackResolver
resolve() {@inheritDoc} RelativeFallbackResolver

Method Details

__construct()

Constructor

Parameter Name Type Description
$resolver \ResolverInterface

Returns:

resolve()

{@inheritDoc}

Parameter Name Type Description
$name
$renderer

Returns:

Top