jhtml($key, $…)
This function is a proxy of HTMLHelper::_($key)
. It allows to access HTML drawing classes inside twig layouts.
Parameters
string
$key The name of helper method to load, (prefix).(class).function prefix and class are optional and can be used to load custom html helpers.mixed
$… Optional parameters for the helper method.
Returns
mixed
Result of HTMLHelper::call($function, $args)
Examples
{# Render a form token. It will render something like:
<input type="hidden" name="19fa6812708e295180f8d5e08963cd5b" value="1" />#}
{{ jhtml('form.token') }}