core\Template::getPath PHP Метод

getPath() публичный статический Метод

Get template file path
public static getPath ( string $templateName ) : string
$templateName string Template file name
Результат 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 "";
        }
    }