Метод |
Описание |
|
addFile ( string $name, string $file ) |
Add a new template with its file path |
|
addFiles ( array $files ) |
Add multiple new templates with their file paths |
|
getDefaultPath ( string $template, string $format ) : string |
Return the path to the default template |
|
getFiles ( ) : array |
Return the template files as array |
|
getPath ( string $template, string $format, string $custom = 'templates' ) : string |
Return a template path |
|
getPrefixedFiles ( string $prefix ) : array |
Return the files matching a prefix as array |
|
initialize ( ) |
Find the templates in the Contao resource folders. |
|