for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2017
* @package MW
* @subpackage View
*/
namespace Aimeos\MW\View\Engine;
* Flow view engine implementation
*
class Flow implements Iface
{
private $view;
* Initializes the view object
* @param \TYPO3\Fluid\View\StandaloneView $view Flow template view object
public function __construct( \TYPO3\Fluid\View\StandaloneView $view )
$this->view = $view;
}
* Renders the output based on the given template file name and the key/value pairs
* @param \Aimeos\MW\View\Iface $view View object
* @param string $filename File name of the view template
* @param array $values Associative list of key/value pairs
* @return string Output generated by the template
* @throws \Aimeos\MW\View\Exception If the template isn't found
public function render( \Aimeos\MW\View\Iface $view, $filename, array $values )
$fluid = clone $this->view;
$fluid->setTemplatePathAndFilename( $filename );
$fluid->assign( '_aimeos_view', $view );
$fluid->assignMultiple( $values );
return $fluid->render();