Forum


Replies: 6   Views: 3255
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:46

My Template:



$BLOCK_A$

TABLE COL1      COL2                   

$VAR_R_MAN$   $VAR_R_COST$

$BLOCK_A$ 



Code Snippet:



$docx->deleteTemplateBlock('BLOCK_A');



...



$docx->clearBlocks();



Output:



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



TABLE COL1      COL2                   

$VAR_R_MAN$   $VAR_R_COST$



Any suggestions please?