Resolve
extends ModifierPlugin
in package
Represents a Smarty `resolve` plugin. The plugin locates the active template depending on if the template is custom or standard.
Example:
`{include file="path/to/file.tpl"|resolve}
Tags
Table of Contents
- callback() : string
- Locates the template representing a relative filepath and configures smarty with the correct template directory and compile path
- getName() : string
Methods
callback()
Locates the template representing a relative filepath and configures smarty with the correct template directory and compile path
public
callback(mixed $value, mixed ...$params) :
string
The method first looks for a local copy and otherwise resolves to the standard version
Parameters
- $value : mixed
- $params : mixed
Tags
Return values
string —the path in format local/path/to/file
getName()
public
getName() :
string