forked from TYPO3/Fluid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_passthrough.php
More file actions
24 lines (19 loc) · 836 Bytes
/
example_passthrough.php
File metadata and controls
24 lines (19 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
* EXAMPLE: Parsing modifier
*
* This example shows you how to use the "parsing off"
* modifier in template files to disable all Fluid
* parsing. Useful when for example you want to render
* a template or partial file without processing it as
* Fluid, but still being able to render it (=reading
* and passing through) using `f:render`.
*/
require __DIR__ . '/include/view_init.php';
// Assigning the template path and filename to be rendered. Doing this overrides
// resolving normally done by the TemplatePaths and directly renders this file.
$paths->setTemplatePathAndFilename(__DIR__ . '/Resources/Private/Singles/Passthrough.html');
// Rendering the View: plain old rendering of single file, no bells and whistles.
$output = $view->render();
// Output using helper from view_init.php
example_output($output);