Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • ActiveRecord
  • ClassLoader
  • DcCompat
  • TemplateLoader
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

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.

Namespace: DcGeneral\Contao\Compatibility
Located at Contao/Compatibility/TemplateLoader.php
Methods summary
public static
# addFile( string $name, string $file )

No op.

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.

No op.

Parameters

$files
array
$files An array of files.
public static
# getFiles( )

No op.

No op.

Throws

DcGeneral\Exception\DcGeneralException
Always.
public static
# getPrefixedFiles( string $prefix )

No op.

No op.

Parameters

$prefix
string
$prefix The prefix (e.g. "moo_").

Throws

DcGeneral\Exception\DcGeneralException
Always.
public static
# getPath( string $template, string $format, string $custom = 'templates' )

No op.

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

DcGeneral\Exception\DcGeneralException
If $template does not exist.
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0