Class TemplateLoader
Class TemplateLoader
This class simply exists to provide the Contao 3 namespace based auto loading
in Contao 2.11. It is heavily based upon code by Leo Feyer and only
temporary.
It does not perform any actions but merely exist to provide the class needed
by autoload.php files.
Methods summary
public static
|
#
addFile( string $name, string $file )
No op.
Parameters
- $name
string $name The template name.
- $file
string $file The path to the template folder.
|
public static
|
#
addFiles( array $files )
No op.
Parameters
- $files
array $files An array of files.
|
public static
|
|
public static
|
#
getPrefixedFiles( string $prefix )
No op.
Parameters
- $prefix
string $prefix The prefix (e.g. "moo_").
Throws
|
public static
|
#
getPath( string $template, string $format, string $custom = 'templates' )
No op.
Parameters
- $template
string $template The template name.
- $format
string $format The output format (e.g. "html5").
- $custom
string $custom The custom templates folder (defaults to "templates").
Throws
|