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

Constructor

__construct(\Zend\View\Resolver\ResolverInterface $resolver) 

Resolve a template/pattern name to a resource the renderer can consume

resolve(string $name, \Zend\View\Renderer\RendererInterface $renderer) : mixed

Parameters

$name

string

Returns

mixed

 Properties

 

$resolver

$resolver : \Zend\View\Resolver\ResolverInterface

 Constants

 

NS_SEPARATOR

NS_SEPARATOR