[Templating] added an output method to Engine
This commit is contained in:
parent
9e5718cff1
commit
5cdee87b14
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user