core\Template::getPath PHP Method

getPath() public static method

Get template file path
public static getPath ( string $templateName ) : string
$templateName string Template file name
return 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 "";
        }
    }