public static function setTemplateDir($path) { self::checkDir($path); self::$_templateDir = rtrim($path, '/') . '/'; }