Pimcore\View::includeTemplateFile PHP Method

includeTemplateFile() public method

public includeTemplateFile ( string $script )
$script string
    public function includeTemplateFile($script)
    {
        $showTemplatePaths = isset($_REQUEST["pimcore_show_template_paths"]);
        if ($showTemplatePaths && \Pimcore::inDebugMode()) {
            echo "\n<!-- start template inclusion: " . $script . " -->\n";
        }
        include $script;
        if ($showTemplatePaths && \Pimcore::inDebugMode()) {
            echo "\n<!-- finished template inclusion: " . $script . " -->\n";
        }
    }