We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9020e67 + 5e93950 commit 5a7a11aCopy full SHA for 5a7a11a
docs/templates-processing.rst
@@ -244,3 +244,20 @@ See ``Sample_40_TemplateSetComplexValue.php`` for examples.
244
$table->addCell(150)->addText('Cell B2');
245
$table->addCell(150)->addText('Cell B3');
246
$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
261
262
+ $pathToSave = 'path/to/save/file.ext';
263
+ $templateProcessor->saveAs($pathToSave);
0 commit comments