ParentTemplate
extends AbstractHelper
in package
Helper to get path to a parent template (for including)
Tags
Table of Contents
- $templatePathStack : TemplatePathStack
- Inheritance stack of template folder paths
- __construct() : mixed
- Constructor
- __invoke() : string
- Returns an template path according the configured theme
Properties
$templatePathStack
Inheritance stack of template folder paths
protected
TemplatePathStack
$templatePathStack
Methods
__construct()
Constructor
public
__construct(TemplatePathStack $templateStack) : mixed
Parameters
- $templateStack : TemplatePathStack
-
Inheritance stack of template paths
Return values
mixed —__invoke()
Returns an template path according the configured theme
public
__invoke(string $template[, string $targetTheme = null ]) : string
Parameters
- $template : string
-
template name like 'footer.phtml'
- $targetTheme : string = null
-
specific parent to inherit from
Tags
Return values
string —path, null if image not found