[Templating] added an output() shorcut to the Engine class
This commit is contained in:
parent
9e5718cff1
commit
768b5d0904
@ -132,6 +132,19 @@ class Engine
|
|||||||
return $content;
|
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.
|
* Gets a helper value.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user