FileTemplateLoader
This loader is the most used. It takes a file identifier as input. This identifier corresponds
to a file that can be different from the user's theme. In fact, when it loads a template, its looks for
it at several places. For a module template, it can be the default one which is in the /module/templates directory,
but if the file is specialized by the theme, it loads it from the theme directory. All that is explained
in the FileTemplate
class description.
This loader supports caching and stores cache files in the /cache/tpl directory, their name are related to
their source's real path.
- FileTemplateLoader implements TemplateLoader
public
|
#
__construct( string $identifier,
Constructs a |
public
string
|
|
public
boolean
|
#
supports_caching( )
Tells whether the loader supports caching. If it supports it, its |
public
string
|
#
get_cache_file_path( )
Returns the path of the cache file that can be directly executed by the include PHP instruction.
This method must be called only if the loader supports caching, the |
public
|