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 "";
        }
    }