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

package Default

 Methods

Constructor

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

Parameters

$resolver

\Zend\View\Resolver\ResolverInterface

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

resolve(string $name, \Zend\View\Renderer\RendererInterface $renderer = null
inherited_from \Zend\View\Resolver\ResolverInterface::resolve()

Parameters

$name

$renderer

 Properties

 

$resolver

$resolver : \Zend\View\Resolver\ResolverInterface

Default

 Constants

 

NS_SEPARATOR

NS_SEPARATOR = '/'