We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using one or more of the mentioned funstions to change the delimiters of the macros to be replaced, nothing is changed.
$templateProcessor->setMacroChars('[', ']'); then in the template [customer-name] should be changed to John Doe (the customer name)
$templateProcessor->setMacroChars('[', ']');
[customer-name]
<?php $templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor( $template_dir . $template_name ); // In the templates let's search for tags delimited by [...] $templateProcessor->setMacroChars('[', ']'); $templateProcessor->setValues($data); $templateProcessor->saveAs( $upload_dir . $fileName ); ?>
master
8.1.23
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug and add attachments
When using one or more of the mentioned funstions to change the delimiters of the macros to be replaced, nothing is changed.
Expected behavior
$templateProcessor->setMacroChars('[', ']');
then in the template
[customer-name]
should be changed to John Doe (the customer name)Steps to reproduce
PHPWord version(s) where the bug happened
master
PHP version(s) where the bug happened
8.1.23
Priority
The text was updated successfully, but these errors were encountered: