Feature #4459

Add PaddingViewHelper

Added by Bastian Waidelich over 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Could have
Category:
ViewHelpers
Target version:
-
Start date:
2009-09-04
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

A PaddingViewHelper can be useful to format strings, especially in text/xml templates. It is a wrapper for PHPs str_pad function and can be used like this:

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

->
TYPO3-=-=-

Patch follows.

#1

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from New to Accepted
#2

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

backported to v4 as well.

#3

Updated by Bastian Waidelich over 12 years ago

in r3169

Also available in: Atom PDF