Closed philippfrenzel closed 9 years ago
I have not understood what do u want to do. Could u explain/give me an example?
I wanna do this:
http://phpword.readthedocs.org/en/latest/templates-processing.html
Which means:
´´´ $templateProcessor = new TemplateProcessor('Template.docx'); $templateProcessor->setValue('Name', 'Somebody someone'); $templateProcessor->setValue('Street', 'Coming-Undone-Street 32'); ´´´
Where Template.docx is the file I uploaded to a model, using your module;)
Now u can use
model->files[0]->path // for single file
or
foreach ($model->files as $file) {
echo $file->path;
}
Is that all you need to?
Jep! exactly! ;) THanks a Lot
e.g. I wanna open a word file (attachement) and then wanna replace stuff inside to deploy to user?
Thanks Philipp