Reference - Output types - file


App: regression/output_file - Page: payload
PHP
payload.php
HTML
payload.pad
Result
<?php

$greet
= 'carried all the way';

?>
<p>{$greet | upper}</p>{file dir='regression_output_file', name='side', ext='txt'}SIDE BY SIDE{/file}


App: regression/pages - Page: file/index
PHP
file/index.php
HTML
file/index.pad
Result
<?php

$padOutputType
= 'file';

$padFileName = 'myName';
$padFileDir = 'temp/myDir';
$padFileExtension = 'ext';
$padFileDate = FALSE;
$padFileTimeStamp = TRUE;
$padFileUniqId = 8;
$padFileNextPage = 'file/done';

?>
{# the file this writes is named from the clock and a random id, so the page says something
different every run - the crawl reads the word random here and stops comparing it. The pages
suite asserts the shape of the name instead. #
}

Hallo Wereld