lib/PHPWord/PHPWord.php
public function loadTemplate($strFilename) {
        if(file_exists($strFilename)) {
            $template = new PHPWord_Template($strFilename);
            return $template;
        } else {
            trigger_error('Template file '.$strFilename.' not found.', E_ERROR);
        }
    }
public function loadTemplate($strFilename) {
        if(file_exists($strFilename)) {
            $template = new PHPWord_Template($strFilename);
            return $template;
        } else {
            trigger_error('Template file '.$strFilename.' not found.', E_ERROR);
        }
    }
public function loadTemplate ( $ strFilename ) { if ( file_exists ( $ strFilename ) ) { $ template = new PHPWord_Template ( $ strFilename ) ; return $ template ; } else { trigger_error ( 'Template file ' . $ strFilename . ' not found.' , E_ERROR ) ; } }
Load a Template File

@param string $strFilename
@return PHPWord_Template
Load a Template File