$request
$request
Plugin for smarty defining blocks and functions for using Form display.
blocks :
- {form name="myForm"} ... {/form} => find form named myForm,
create an instance and assign this instanciation into smarty variable. Form must be declare into
config using
{form_field form=$form.fieldName} {/form_field} This block find info into the Form field containing by the form paramter. This field must be an instance of FormView. fieldName is the name of your field. This block can output these info :
{form_error form=$form.fieldName} ... {/form_error} Display this block if there are errors on this field. fieldName is the name of your field
Class Form
__construct(\Symfony\Component\HttpFoundation\Request $request, \Thelia\Core\Template\ParserContext $parserContext)
| \Symfony\Component\HttpFoundation\Request | $request | |
| \Thelia\Core\Template\ParserContext | $parserContext |
getNormalizedParam(array $params, mixed $name, mixed $default) : mixed
Get a function or block parameter value, and normalize it, trimming balnks and making it lowercase
| array | $params | the parameters array |
| mixed | $name | as single parameter name, or an array of names. In this case, the first defined parameter is returned. Use this for aliases (context, ctx, c) |
| mixed | $default | the defaut value if parameter is missing (default to null) |
the parameter value, or the default value if it is not found.
getParam(array $params, mixed $name, mixed $default) : mixed
Get a function or block parameter value
| array | $params | the parameters array |
| mixed | $name | as single parameter name, or an array of names. In this case, the first defined parameter is returned. Use this for aliases (context, ctx, c) |
| mixed | $default | the defaut value if parameter is missing (default to null) |
the parameter value, or the default value if it is not found.
_explode(\Thelia\Core\Template\Smarty\unknown $commaSeparatedValues) : \Thelia\Core\Template\Smarty\multitype:
Explode a comma separated list in a array, trimming all array elements
| \Thelia\Core\Template\Smarty\unknown | $commaSeparatedValues |