Merge pull request #1729 from hcdias/patch-1
Update templates processing docs
This commit is contained in:
commit
5a7a11a62b
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue