if (!
is_file($this->renderVars
['file'
])) { $this->renderVars
['file'
] =
$this->loader->
locateFile( $this->renderVars
['view'
],
'Views',
empty($fileExt) ? 'php' :
$fileExt );
} // locateFile will return an empty string if the file cannot be found.
if (empty($this->renderVars
['file'
])) { throw ViewException::
forInvalidFile($this->renderVars
['view'
]);
} // Make our view data available to the view.
$this->
prepareTemplateData($saveData);
// Save current vars
$renderVars =
$this->renderVars;
$output =
(function D
): string
{ extract($this->tempData
);
ob_start();