public function setTemplateDir($dir)
    {
        $tmpDir = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR;
        if (is_dir($tmpDir) === false) {
            throw new Exception('The template directory: "' . $tmpDir . '" does not exists, create the directory or specify an other location !');
        }
        $this->templateDir[] = $tmpDir;
    }
public function setTemplateDir($dir)
    {
        $tmpDir = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR;
        if (is_dir($tmpDir) === false) {
            throw new Exception('The template directory: "' . $tmpDir . '" does not exists, create the directory or specify an other location !');
        }
        $this->templateDir[] = $tmpDir;
    }
public function setTemplateDir ( $ dir ) { $ tmpDir = rtrim ( $ dir , '/\\' ) . DIRECTORY_SEPARATOR ; if ( is_dir ( $ tmpDir ) === false ) { throw new Exception ( 'The template directory: "' . $ tmpDir . '" does not exists, create the directory or specify an other location !' ) ; } $ this -> templateDir [ ] = $ tmpDir ; }
sets the template directory and automatically appends a DIRECTORY_SEPARATOR
template directory is stored in an array

@param string $dir

@throws Exception
sets the template directory and automatically appends a DIRECTORY_SEPARATOR template directory is stored in an array