Skip to content

Commit

Permalink
Update templates processing docs
Browse files Browse the repository at this point in the history
Adding save() and saveAs() methods docs
  • Loading branch information
hcdias authored Oct 3, 2019
1 parent b8346af commit 5e93950
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 5e93950

Please sign in to comment.