Skip to content

Commit

Permalink
Merge pull request #1729 from hcdias/patch-1
Browse files Browse the repository at this point in the history
Update templates processing docs
  • Loading branch information
troosan authored Dec 8, 2019
2 parents 9020e67 + 5e93950 commit 5a7a11a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/templates-processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,20 @@ See ``Sample_40_TemplateSetComplexValue.php`` for examples.
$table->addCell(150)->addText('Cell B2');
$table->addCell(150)->addText('Cell B3');
$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);

0 comments on commit 5a7a11a

Please sign in to comment.