Forum


Replies: 1   Views: 2379
Error at repairvariables when _templatesymbol set to ""
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by criptos  · 28-10-2017 - 23:29

I set             $docxHtml->setTemplateSymbol('');

 So 

            $docxHtml->replaceVariablebyWordFragment(array($key => $htmlFragment));
searchs for $key on hole document istead to only template variables, but I get a warning and doesn't work,

so at line 1860 CreateDocxFromTemplate.inc I use this       

if(self::$_templateSymbol!="")
        $documentSymbol = explode(self::$_templateSymbol, $content);
        else
        $documentSymbol[]=$content;