I'm currently trialing phpdocx, and I'm trying to duplicate a block multiple times. As far as I understand, I need to use WordFragment objects to do this. But how do I create a WordFragment based on an existing variable / block in a document?
In other words, I have a template with a block of content in it (eg. containing some text, some tables, and some variables). How can I create a WordFragment out of this block so that I can manipulate the variables inside it, and then paste the WordFragment back into the original template?