Package

ViewHelpers

ViewHelper Documentation

v:variable.convert

Convert ViewHelper

Converts $value to $type which can be one of 'string', 'integer', 'float', 'boolean', 'array' or 'ObjectStorage'. If $value is NULL sensible defaults are assigned or $default which obviously has to be of $type as well.

Arguments

value anySimpleType

Value to convert into a different type

type string

Data type to convert the value into. Can be one of "string", "integer", "float", "boolean", "array" or "ObjectStorage".

default anySimpleType

Optional default value to assign to the converted variable in case it is NULL.

ViewHelper Resources

Schema Resources