Contao\Template::__construct PHP Method

__construct() public method

Create a new template object
public __construct ( string $strTemplate = '', string $strContentType = 'text/html' )
$strTemplate string The template name
$strContentType string The content type (defaults to "text/html")
    public function __construct($strTemplate = '', $strContentType = 'text/html')
    {
        parent::__construct();
        $this->strTemplate = $strTemplate;
        $this->strContentType = $strContentType;
    }