-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
Template example file #26
Comments
@MarkBaker Any ideas on this? I'm trying to figure out how this library expects fields to be setup in the word template. Thanks |
Hi, Curtis. I guess this fragment of source code answers the question. if(substr($search, 0, 2) !== '${' && substr($search, -1) !== '}') {
$search = '${'.$search.'}';
} So, the followed statement from Template.php: $document->setValue('Value1', 'Sun'); will actually search for the "${Value1}" (NOT "Value1") in the specified template file. |
The template example has been provided by @jeroenmoors (#90) on the develop branch as |
Hi @ccorliss. Have you got a chance to see the current version of the |
I did - great example, thanks guys! |
Does anyone have a doc that could be used with this example?
https://github.com/PHPOffice/PHPWord/blob/develop/src/Examples/Template.php
cc @Progi1984
The text was updated successfully, but these errors were encountered: