Interface for classes implementing a dynamic template location.
An object implementing the ezcTemplateLocationInterface can be used as a substitute for the template source in the ezcTemplate::process() method and inside the template {include} block.
Inside a template, a custom function is used to create this location object. The following template source:
With the following custom function definition:
The dynloc() method returns a new DynamicLocation object. A simple implementation of the ezcTemplateLocationInterface is shown below:
The template will first try to use the original template. If that template does not exist, it uses the fallback template.
Source for this file: /Template/src/interfaces/location.php
Version: | //autogen// |
public string |
getPath(
)
Implement this method to return the path to the template source. |
Implement this method to return the path to the template source.
The original template name is set with any other method.