Package

ViewHelpers

ViewHelper Documentation

format.padding

Formats a string using PHPs str_pad function.

= Examples =

<f:format.padding padLength="10">TYPO3</f:format.padding> TYPO3 (note the trailing whitespace)

<f:format.padding padLength="10" padString="-=">TYPO3</f:format.padding> TYPO3-=-=-

<f:format.padding padLength="10" padString="-" padType="both">TYPO3</f:format.padding> --TYPO3---

Arguments

padLength integer

Length of the resulting string. If the value of pad_length is negative or less than the length of the input string, no padding takes place.

padString string

The padding string

padType string

Append the padding at this site (Possible values: right,left,both. Default: right)

value string

string to format

ViewHelper Resources

Schema Resources