core\Template::getPath PHP Méthode

getPath() public static méthode

Get template file path
public static getPath ( string $templateName ) : string
$templateName string Template file name
Résultat string Absolute path of the template file
    public static function getPath($templateName)
    {
        if (file_exists(ROOT_PATH . "Template/{$templateName}.htm")) {
            return ROOT_PATH . "Template/{$templateName}.htm";
        } else {
            return "";
        }
    }