protected function createTmpFile($content = null)
    {
        $tmpPath = $this->getConfig('tmp', sys_get_temp_dir());
        $tmpFile = tempnam($tmpPath,'tmp_WkHtmlToPdf_');
        rename($tmpFile, $tmpFile .= '.html');

        if (!is_null($content)) {
            file_put_contents($tmpFile, $content);
        }

        $this->tmpFiles[] = $tmpFile;

        return $tmpFile;
    }
protected function createTmpFile($content = null)
    {
        $tmpPath = $this->getConfig('tmp', sys_get_temp_dir());
        $tmpFile = tempnam($tmpPath,'tmp_WkHtmlToPdf_');
        rename($tmpFile, $tmpFile .= '.html');

        if (!is_null($content)) {
            file_put_contents($tmpFile, $content);
        }

        $this->tmpFiles[] = $tmpFile;

        return $tmpFile;
    }
protected function createTmpFile ( $ content = null ) { $ tmpPath = $ this -> getConfig ( 'tmp' , sys_get_temp_dir ( ) ) ; $ tmpFile = tempnam ( $ tmpPath , 'tmp_WkHtmlToPdf_' ) ; rename ( $ tmpFile , $ tmpFile .= '.html' ) ; if ( ! is_null ( $ content ) ) { file_put_contents ( $ tmpFile , $ content ) ; } $ this -> tmpFiles [ ] = $ tmpFile ; return $ tmpFile ; }
Create a tmp file, optionally with given content

@param  mixed $content The file content
@return string The path to the created file
Create a tmp file optionally with given content