Merge pull request #1729 from hcdias/patch-1

Update templates processing docs
This commit is contained in:
troosan 2019-12-08 14:32:03 +01:00 committed by GitHub
commit 5a7a11a62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -244,3 +244,20 @@ See ``Sample_40_TemplateSetComplexValue.php`` for examples.
$table->addCell(150)->addText('Cell B2'); $table->addCell(150)->addText('Cell B2');
$table->addCell(150)->addText('Cell B3'); $table->addCell(150)->addText('Cell B3');
$templateProcessor->setComplexBlock('table', $table); $templateProcessor->setComplexBlock('table', $table);
save
"""""""""
Saves the loaded template within the current directory. Returns the file path.
.. code-block:: php
$filepath = $templateProcessor->save();
saveAs
"""""""""
Saves a copy of the loaded template in the indicated path.
.. code-block:: php
$pathToSave = 'path/to/save/file.ext';
$templateProcessor->saveAs($pathToSave);