Replies: 6   Views: 3462
Deletetemplateblock broken?
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 gowrisankarn  · 01-07-2013 - 06:57


My Template:


TABLE COL1      COL2                   



Code Snippet:





Doesn't delete the table within the block. I see below in my generated doc.

TABLE COL1      COL2                   


Any suggestions please?



My mistake.

NO : $docx->deleteTemplateBlock('BLOCK_A');

YES : $docx->deleteTemplateBlock('A');

It is mentioned in one of the examples that the prefix "BLOCK_" will be omitted from the argument. Would be nice if this is document here

Thank you.