Skip to content

Commit 5a7a11a

Browse files
authored
Merge pull request #1729 from hcdias/patch-1
Update templates processing docs
2 parents 9020e67 + 5e93950 commit 5a7a11a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/templates-processing.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,20 @@ See ``Sample_40_TemplateSetComplexValue.php`` for examples.
244244
$table->addCell(150)->addText('Cell B2');
245245
$table->addCell(150)->addText('Cell B3');
246246
$templateProcessor->setComplexBlock('table', $table);
247+
248+
save
249+
"""""""""
250+
Saves the loaded template within the current directory. Returns the file path.
251+
252+
.. code-block:: php
253+
254+
$filepath = $templateProcessor->save();
255+
256+
saveAs
257+
"""""""""
258+
Saves a copy of the loaded template in the indicated path.
259+
260+
.. code-block:: php
261+
262+
$pathToSave = 'path/to/save/file.ext';
263+
$templateProcessor->saveAs($pathToSave);

0 commit comments

Comments
 (0)