[Templating] added an output method to Engine

This commit is contained in:
Fabien Potencier 2010-02-15 15:31:16 +01:00
parent 9e5718cff1
commit 5cdee87b14
1 changed files with 13 additions and 0 deletions

View File

@ -132,6 +132,19 @@ class Engine
return $content;
}
/**
* Outputs a rendered template.
*
* @param string $name A template name
* @param array $parameters An array of parameters to pass to the template
*
* @see render()
*/
public function output($name, array $parameters = array())
{
echo $this->render($name, $parameters);
}
/**
* Gets a helper value.
*